coder 2.4.0-pre1 published on Tuesday, Apr 15, 2025 by coder
coder.getWorkspace
Explore with Pulumi AI
Use this data source to get information for the active workspace build.
Using getWorkspace
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 getWorkspace(opts?: InvokeOptions): Promise<GetWorkspaceResult>
function getWorkspaceOutput(opts?: InvokeOptions): Output<GetWorkspaceResult>
def get_workspace(opts: Optional[InvokeOptions] = None) -> GetWorkspaceResult
def get_workspace_output(opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceResult]
func GetWorkspace(ctx *Context, opts ...InvokeOption) (*GetWorkspaceResult, error)
func GetWorkspaceOutput(ctx *Context, opts ...InvokeOption) GetWorkspaceResultOutput
> Note: This function is named GetWorkspace
in the Go SDK.
public static class GetWorkspace
{
public static Task<GetWorkspaceResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetWorkspaceResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkspaceResult> getWorkspace(InvokeOptions options)
public static Output<GetWorkspaceResult> getWorkspace(InvokeOptions options)
fn::invoke:
function: coder:index/getWorkspace:getWorkspace
arguments:
# arguments dictionary
getWorkspace Result
The following output properties are available:
- Access
Port double - The access port of the Coder deployment provisioning this workspace.
- Access
Url string - The access URL of the Coder deployment provisioning this workspace.
- Id string
- UUID of the workspace.
- Is
Prebuild bool - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - Name string
- Name of the workspace.
- Prebuild
Count double - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- Start
Count double - A computed count based on
transition
state. Ifstart
, count will equal 1. - Template
Id string - ID of the workspace's template.
- Template
Name string - Name of the workspace's template.
- Template
Version string - Version of the workspace's template.
- Transition string
- Either
start
orstop
. Use this to start/stop resources withcount
.
- Access
Port float64 - The access port of the Coder deployment provisioning this workspace.
- Access
Url string - The access URL of the Coder deployment provisioning this workspace.
- Id string
- UUID of the workspace.
- Is
Prebuild bool - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - Name string
- Name of the workspace.
- Prebuild
Count float64 - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- Start
Count float64 - A computed count based on
transition
state. Ifstart
, count will equal 1. - Template
Id string - ID of the workspace's template.
- Template
Name string - Name of the workspace's template.
- Template
Version string - Version of the workspace's template.
- Transition string
- Either
start
orstop
. Use this to start/stop resources withcount
.
- access
Port Double - The access port of the Coder deployment provisioning this workspace.
- access
Url String - The access URL of the Coder deployment provisioning this workspace.
- id String
- UUID of the workspace.
- is
Prebuild Boolean - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - name String
- Name of the workspace.
- prebuild
Count Double - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- start
Count Double - A computed count based on
transition
state. Ifstart
, count will equal 1. - template
Id String - ID of the workspace's template.
- template
Name String - Name of the workspace's template.
- template
Version String - Version of the workspace's template.
- transition String
- Either
start
orstop
. Use this to start/stop resources withcount
.
- access
Port number - The access port of the Coder deployment provisioning this workspace.
- access
Url string - The access URL of the Coder deployment provisioning this workspace.
- id string
- UUID of the workspace.
- is
Prebuild boolean - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - name string
- Name of the workspace.
- prebuild
Count number - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- start
Count number - A computed count based on
transition
state. Ifstart
, count will equal 1. - template
Id string - ID of the workspace's template.
- template
Name string - Name of the workspace's template.
- template
Version string - Version of the workspace's template.
- transition string
- Either
start
orstop
. Use this to start/stop resources withcount
.
- access_
port float - The access port of the Coder deployment provisioning this workspace.
- access_
url str - The access URL of the Coder deployment provisioning this workspace.
- id str
- UUID of the workspace.
- is_
prebuild bool - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - name str
- Name of the workspace.
- prebuild_
count float - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- start_
count float - A computed count based on
transition
state. Ifstart
, count will equal 1. - template_
id str - ID of the workspace's template.
- template_
name str - Name of the workspace's template.
- template_
version str - Version of the workspace's template.
- transition str
- Either
start
orstop
. Use this to start/stop resources withcount
.
- access
Port Number - The access port of the Coder deployment provisioning this workspace.
- access
Url String - The access URL of the Coder deployment provisioning this workspace.
- id String
- UUID of the workspace.
- is
Prebuild Boolean - Similar to
prebuild_count
, but a boolean value instead of a count. This is set to true if the workspace is a currently unassigned prebuild. Once the workspace is assigned, this value will be false. - name String
- Name of the workspace.
- prebuild
Count Number - A computed count, equal to 1 if the workspace is a currently unassigned prebuild. Use this to conditionally act on the status of a prebuild. Actions that do not require user identity can be taken when this value is set to 1. Actions that should only be taken once the workspace has been assigned to a user may be taken when this value is set to 0.
- start
Count Number - A computed count based on
transition
state. Ifstart
, count will equal 1. - template
Id String - ID of the workspace's template.
- template
Name String - Name of the workspace's template.
- template
Version String - Version of the workspace's template.
- transition String
- Either
start
orstop
. Use this to start/stop resources withcount
.
Package Details
- Repository
- coder coder/terraform-provider-coder
- License
- Notes
- This Pulumi package is based on the
coder
Terraform Provider.