coder.App
Explore with Pulumi AI
Use this resource to define shortcuts to access applications in a workspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as coder from "@pulumi/coder";
const me = coder.getWorkspace({});
const dev = new coder.Agent("dev", {
    os: "linux",
    arch: "amd64",
    dir: "/workspace",
    startupScript: `curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
`,
});
const code_server = new coder.App("code-server", {
    agentId: dev.agentId,
    slug: "code-server",
    displayName: "VS Code",
    icon: me.then(me => `${me.accessUrl}/icon/code.svg`),
    url: "http://localhost:13337",
    share: "owner",
    subdomain: false,
    openIn: "window",
    healthcheck: {
        url: "http://localhost:13337/healthz",
        interval: 5,
        threshold: 6,
    },
});
const vim = new coder.App("vim", {
    agentId: dev.agentId,
    slug: "vim",
    displayName: "Vim",
    icon: me.then(me => `${me.accessUrl}/icon/vim.svg`),
    command: "vim",
});
import pulumi
import pulumi_coder as coder
me = coder.get_workspace()
dev = coder.Agent("dev",
    os="linux",
    arch="amd64",
    dir="/workspace",
    startup_script="""curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
""")
code_server = coder.App("code-server",
    agent_id=dev.agent_id,
    slug="code-server",
    display_name="VS Code",
    icon=f"{me.access_url}/icon/code.svg",
    url="http://localhost:13337",
    share="owner",
    subdomain=False,
    open_in="window",
    healthcheck={
        "url": "http://localhost:13337/healthz",
        "interval": 5,
        "threshold": 6,
    })
vim = coder.App("vim",
    agent_id=dev.agent_id,
    slug="vim",
    display_name="Vim",
    icon=f"{me.access_url}/icon/vim.svg",
    command="vim")
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/coder/v2/coder"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		me, err := coder.GetWorkspace(ctx, map[string]interface{}{}, nil)
		if err != nil {
			return err
		}
		dev, err := coder.NewAgent(ctx, "dev", &coder.AgentArgs{
			Os:            pulumi.String("linux"),
			Arch:          pulumi.String("amd64"),
			Dir:           pulumi.String("/workspace"),
			StartupScript: pulumi.String("curl -fsSL https://code-server.dev/install.sh | sh\ncode-server --auth none --port 13337\n"),
		})
		if err != nil {
			return err
		}
		_, err = coder.NewApp(ctx, "code-server", &coder.AppArgs{
			AgentId:     dev.AgentId,
			Slug:        pulumi.String("code-server"),
			DisplayName: pulumi.String("VS Code"),
			Icon:        pulumi.Sprintf("%v/icon/code.svg", me.AccessUrl),
			Url:         pulumi.String("http://localhost:13337"),
			Share:       pulumi.String("owner"),
			Subdomain:   pulumi.Bool(false),
			OpenIn:      pulumi.String("window"),
			Healthcheck: &coder.AppHealthcheckArgs{
				Url:       pulumi.String("http://localhost:13337/healthz"),
				Interval:  pulumi.Float64(5),
				Threshold: pulumi.Float64(6),
			},
		})
		if err != nil {
			return err
		}
		_, err = coder.NewApp(ctx, "vim", &coder.AppArgs{
			AgentId:     dev.AgentId,
			Slug:        pulumi.String("vim"),
			DisplayName: pulumi.String("Vim"),
			Icon:        pulumi.Sprintf("%v/icon/vim.svg", me.AccessUrl),
			Command:     pulumi.String("vim"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coder = Pulumi.Coder;
return await Deployment.RunAsync(() => 
{
    var me = Coder.GetWorkspace.Invoke();
    var dev = new Coder.Agent("dev", new()
    {
        Os = "linux",
        Arch = "amd64",
        Dir = "/workspace",
        StartupScript = @"curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
",
    });
    var code_server = new Coder.App("code-server", new()
    {
        AgentId = dev.AgentId,
        Slug = "code-server",
        DisplayName = "VS Code",
        Icon = $"{me.Apply(getWorkspaceResult => getWorkspaceResult.AccessUrl)}/icon/code.svg",
        Url = "http://localhost:13337",
        Share = "owner",
        Subdomain = false,
        OpenIn = "window",
        Healthcheck = new Coder.Inputs.AppHealthcheckArgs
        {
            Url = "http://localhost:13337/healthz",
            Interval = 5,
            Threshold = 6,
        },
    });
    var vim = new Coder.App("vim", new()
    {
        AgentId = dev.AgentId,
        Slug = "vim",
        DisplayName = "Vim",
        Icon = $"{me.Apply(getWorkspaceResult => getWorkspaceResult.AccessUrl)}/icon/vim.svg",
        Command = "vim",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coder.CoderFunctions;
import com.pulumi.coder.Agent;
import com.pulumi.coder.AgentArgs;
import com.pulumi.coder.App;
import com.pulumi.coder.AppArgs;
import com.pulumi.coder.inputs.AppHealthcheckArgs;
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 me = CoderFunctions.getWorkspace();
        var dev = new Agent("dev", AgentArgs.builder()
            .os("linux")
            .arch("amd64")
            .dir("/workspace")
            .startupScript("""
curl -fsSL https://code-server.dev/install.sh | sh
code-server --auth none --port 13337
            """)
            .build());
        var code_server = new App("code-server", AppArgs.builder()
            .agentId(dev.agentId())
            .slug("code-server")
            .displayName("VS Code")
            .icon(String.format("%s/icon/code.svg", me.applyValue(getWorkspaceResult -> getWorkspaceResult.accessUrl())))
            .url("http://localhost:13337")
            .share("owner")
            .subdomain(false)
            .openIn("window")
            .healthcheck(AppHealthcheckArgs.builder()
                .url("http://localhost:13337/healthz")
                .interval(5)
                .threshold(6)
                .build())
            .build());
        var vim = new App("vim", AppArgs.builder()
            .agentId(dev.agentId())
            .slug("vim")
            .displayName("Vim")
            .icon(String.format("%s/icon/vim.svg", me.applyValue(getWorkspaceResult -> getWorkspaceResult.accessUrl())))
            .command("vim")
            .build());
    }
}
resources:
  dev:
    type: coder:Agent
    properties:
      os: linux
      arch: amd64
      dir: /workspace
      startupScript: |
        curl -fsSL https://code-server.dev/install.sh | sh
        code-server --auth none --port 13337        
  code-server:
    type: coder:App
    properties:
      agentId: ${dev.agentId}
      slug: code-server
      displayName: VS Code
      icon: ${me.accessUrl}/icon/code.svg
      url: http://localhost:13337
      share: owner
      subdomain: false
      openIn: window
      healthcheck:
        url: http://localhost:13337/healthz
        interval: 5
        threshold: 6
  vim:
    type: coder:App
    properties:
      agentId: ${dev.agentId}
      slug: vim
      displayName: Vim
      icon: ${me.accessUrl}/icon/vim.svg
      command: vim
variables:
  me:
    fn::invoke:
      function: coder:getWorkspace
      arguments: {}
Create App Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);@overload
def App(resource_name: str,
        args: AppArgs,
        opts: Optional[ResourceOptions] = None)
@overload
def App(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        agent_id: Optional[str] = None,
        slug: Optional[str] = None,
        hidden: Optional[bool] = None,
        display_name: Optional[str] = None,
        external: Optional[bool] = None,
        healthcheck: Optional[AppHealthcheckArgs] = None,
        command: Optional[str] = None,
        icon: Optional[str] = None,
        open_in: Optional[str] = None,
        order: Optional[float] = None,
        share: Optional[str] = None,
        app_id: Optional[str] = None,
        subdomain: Optional[bool] = None,
        url: Optional[str] = None)func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)public App(string name, AppArgs args, CustomResourceOptions? opts = null)type: coder:App
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 AppArgs
 - 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 AppArgs
 - 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 AppArgs
 - The arguments to resource properties.
 - opts ResourceOption
 - Bag of options to control resource's behavior.
 
- name string
 - The unique name of the resource.
 - args AppArgs
 - The arguments to resource properties.
 - opts CustomResourceOptions
 - Bag of options to control resource's behavior.
 
- name String
 - The unique name of the resource.
 - args AppArgs
 - 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 appResource = new Coder.App("appResource", new()
{
    AgentId = "string",
    Slug = "string",
    Hidden = false,
    DisplayName = "string",
    External = false,
    Healthcheck = new Coder.Inputs.AppHealthcheckArgs
    {
        Interval = 0,
        Threshold = 0,
        Url = "string",
    },
    Command = "string",
    Icon = "string",
    OpenIn = "string",
    Order = 0,
    Share = "string",
    AppId = "string",
    Subdomain = false,
    Url = "string",
});
example, err := coder.NewApp(ctx, "appResource", &coder.AppArgs{
AgentId: pulumi.String("string"),
Slug: pulumi.String("string"),
Hidden: pulumi.Bool(false),
DisplayName: pulumi.String("string"),
External: pulumi.Bool(false),
Healthcheck: &.AppHealthcheckArgs{
Interval: pulumi.Float64(0),
Threshold: pulumi.Float64(0),
Url: pulumi.String("string"),
},
Command: pulumi.String("string"),
Icon: pulumi.String("string"),
OpenIn: pulumi.String("string"),
Order: pulumi.Float64(0),
Share: pulumi.String("string"),
AppId: pulumi.String("string"),
Subdomain: pulumi.Bool(false),
Url: pulumi.String("string"),
})
var appResource = new App("appResource", AppArgs.builder()
    .agentId("string")
    .slug("string")
    .hidden(false)
    .displayName("string")
    .external(false)
    .healthcheck(AppHealthcheckArgs.builder()
        .interval(0)
        .threshold(0)
        .url("string")
        .build())
    .command("string")
    .icon("string")
    .openIn("string")
    .order(0)
    .share("string")
    .appId("string")
    .subdomain(false)
    .url("string")
    .build());
app_resource = coder.App("appResource",
    agent_id="string",
    slug="string",
    hidden=False,
    display_name="string",
    external=False,
    healthcheck={
        "interval": 0,
        "threshold": 0,
        "url": "string",
    },
    command="string",
    icon="string",
    open_in="string",
    order=0,
    share="string",
    app_id="string",
    subdomain=False,
    url="string")
const appResource = new coder.App("appResource", {
    agentId: "string",
    slug: "string",
    hidden: false,
    displayName: "string",
    external: false,
    healthcheck: {
        interval: 0,
        threshold: 0,
        url: "string",
    },
    command: "string",
    icon: "string",
    openIn: "string",
    order: 0,
    share: "string",
    appId: "string",
    subdomain: false,
    url: "string",
});
type: coder:App
properties:
    agentId: string
    appId: string
    command: string
    displayName: string
    external: false
    healthcheck:
        interval: 0
        threshold: 0
        url: string
    hidden: false
    icon: string
    openIn: string
    order: 0
    share: string
    slug: string
    subdomain: false
    url: string
App 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 App resource accepts the following input properties:
- Agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - Slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - App
Id string - The ID of this resource.
 - Command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - Display
Name string - A display name to identify the app. Defaults to the slug.
 - External bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - Healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - Icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - Open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - Order double
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - Subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - Url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- Agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - Slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - App
Id string - The ID of this resource.
 - Command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - Display
Name string - A display name to identify the app. Defaults to the slug.
 - External bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - Healthcheck
App
Healthcheck Args  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - Icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - Open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - Order float64
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - Subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - Url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id String - The 
idproperty of acoder.Agentresource to associate with. - slug String
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - app
Id String - The ID of this resource.
 - command String
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name String - A display name to identify the app. Defaults to the slug.
 - external Boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - Boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon String
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In String - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order Double
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - String
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - subdomain Boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url String
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - app
Id string - The ID of this resource.
 - command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name string - A display name to identify the app. Defaults to the slug.
 - external boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order number
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - subdomain boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent_
id str - The 
idproperty of acoder.Agentresource to associate with. - slug str
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - app_
id str - The ID of this resource.
 - command str
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display_
name str - A display name to identify the app. Defaults to the slug.
 - external bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck Args  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon str
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open_
in str - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order float
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - str
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url str
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id String - The 
idproperty of acoder.Agentresource to associate with. - slug String
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - app
Id String - The ID of this resource.
 - command String
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name String - A display name to identify the app. Defaults to the slug.
 - external Boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck Property Map
 - HTTP health checking to determine the application readiness.
 - Boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon String
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In String - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order Number
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - String
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - subdomain Boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url String
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
Outputs
All input properties are implicitly available as output properties. Additionally, the App 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 App Resource
Get an existing App 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?: AppState, opts?: CustomResourceOptions): App@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        agent_id: Optional[str] = None,
        app_id: Optional[str] = None,
        command: Optional[str] = None,
        display_name: Optional[str] = None,
        external: Optional[bool] = None,
        healthcheck: Optional[AppHealthcheckArgs] = None,
        hidden: Optional[bool] = None,
        icon: Optional[str] = None,
        open_in: Optional[str] = None,
        order: Optional[float] = None,
        share: Optional[str] = None,
        slug: Optional[str] = None,
        subdomain: Optional[bool] = None,
        url: Optional[str] = None) -> Appfunc GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)resources:  _:    type: coder:App    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.
 
- Agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - App
Id string - The ID of this resource.
 - Command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - Display
Name string - A display name to identify the app. Defaults to the slug.
 - External bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - Healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - Icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - Open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - Order double
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - Slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - Subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - Url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- Agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - App
Id string - The ID of this resource.
 - Command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - Display
Name string - A display name to identify the app. Defaults to the slug.
 - External bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - Healthcheck
App
Healthcheck Args  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - Icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - Open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - Order float64
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - Slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - Subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - Url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id String - The 
idproperty of acoder.Agentresource to associate with. - app
Id String - The ID of this resource.
 - command String
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name String - A display name to identify the app. Defaults to the slug.
 - external Boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - Boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon String
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In String - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order Double
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - String
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - slug String
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - subdomain Boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url String
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id string - The 
idproperty of acoder.Agentresource to associate with. - app
Id string - The ID of this resource.
 - command string
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name string - A display name to identify the app. Defaults to the slug.
 - external boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck  - HTTP health checking to determine the application readiness.
 - boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon string
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In string - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order number
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - string
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - slug string
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - subdomain boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url string
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent_
id str - The 
idproperty of acoder.Agentresource to associate with. - app_
id str - The ID of this resource.
 - command str
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display_
name str - A display name to identify the app. Defaults to the slug.
 - external bool
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck
App
Healthcheck Args  - HTTP health checking to determine the application readiness.
 - bool
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon str
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open_
in str - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order float
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - str
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - slug str
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - subdomain bool
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url str
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
- agent
Id String - The 
idproperty of acoder.Agentresource to associate with. - app
Id String - The ID of this resource.
 - command String
 - A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either 
commandorurlmay be specified, but not both. - display
Name String - A display name to identify the app. Defaults to the slug.
 - external Boolean
 - Specifies whether 
urlis opened on the client machine instead of proxied through the workspace. - healthcheck Property Map
 - HTTP health checking to determine the application readiness.
 - Boolean
 - Determines if the app is visible in the UI (minimum Coder version: v2.16).
 - icon String
 - A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icon. Use a built-in icon with 
"${data.coder_workspace.me.access_url}/icon/<path>". - open
In String - Determines where the app will be opened. Valid values are 
"tab"and"slim-window" (default)."tab"opens in a new tab in the same browser window."slim-window"opens a new browser window without navigation controls. - order Number
 - The order determines the position of app in the UI presentation. The lowest order is shown first and apps with equal order are sorted by name (ascending order).
 - String
 - Determines the level which the application is shared at. Valid levels are 
"owner"(default),"authenticated"and"public". Level"owner"disables sharing on the app, so only the workspace owner can access it. Level"authenticated"shares the app with all authenticated users. Level"public"shares it with any user, including unauthenticated users. Permitted application sharing levels can be configured site-wide via a flag oncoder server(Enterprise only). - slug String
 - A hostname-friendly name for the app. This is used in URLs to access the app. May contain alphanumerics and hyphens. Cannot start/end with a hyphen or contain two consecutive hyphens.
 - subdomain Boolean
 - Determines whether the app will be accessed via it's own subdomain or whether it will be accessed via a path on Coder. If wildcards have not been setup by the administrator then apps with 
subdomainset totruewill not be accessible. Defaults tofalse. - url String
 - An external url if 
external=trueor a URL to be proxied to from inside the workspace. This should be of the formhttp://localhost:PORT[/SUBPATH]. Eithercommandorurlmay be specified, but not both. 
Supporting Types
AppHealthcheck, AppHealthcheckArgs    
- Interval double
 - Duration in seconds to wait between healthcheck requests.
 - Threshold double
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - Url string
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
- Interval float64
 - Duration in seconds to wait between healthcheck requests.
 - Threshold float64
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - Url string
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
- interval Double
 - Duration in seconds to wait between healthcheck requests.
 - threshold Double
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - url String
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
- interval number
 - Duration in seconds to wait between healthcheck requests.
 - threshold number
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - url string
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
- interval float
 - Duration in seconds to wait between healthcheck requests.
 - threshold float
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - url str
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
- interval Number
 - Duration in seconds to wait between healthcheck requests.
 - threshold Number
 - Number of consecutive heathcheck failures before returning an unhealthy status.
 - url String
 - HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before 
healthcheck.intervalseconds. 
Package Details
- Repository
 - coder coder/terraform-provider-coder
 - License
 - Notes
 - This Pulumi package is based on the 
coderTerraform Provider.