1. Packages
  2. Packages
  3. dbt Cloud Provider
  4. API Docs
  5. getEnvironmentVariable
Viewing docs for dbt Cloud v0.1.31 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
dbtcloud logo
Viewing docs for dbt Cloud v0.1.31 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Using getEnvironmentVariable

    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 getEnvironmentVariable(args: GetEnvironmentVariableArgs, opts?: InvokeOptions): Promise<GetEnvironmentVariableResult>
    function getEnvironmentVariableOutput(args: GetEnvironmentVariableOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentVariableResult>
    def get_environment_variable(name: Optional[str] = None,
                                 project_id: Optional[int] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetEnvironmentVariableResult
    def get_environment_variable_output(name: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[int]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentVariableResult]
    func LookupEnvironmentVariable(ctx *Context, args *LookupEnvironmentVariableArgs, opts ...InvokeOption) (*LookupEnvironmentVariableResult, error)
    func LookupEnvironmentVariableOutput(ctx *Context, args *LookupEnvironmentVariableOutputArgs, opts ...InvokeOption) LookupEnvironmentVariableResultOutput

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

    public static class GetEnvironmentVariable 
    {
        public static Task<GetEnvironmentVariableResult> InvokeAsync(GetEnvironmentVariableArgs args, InvokeOptions? opts = null)
        public static Output<GetEnvironmentVariableResult> Invoke(GetEnvironmentVariableInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEnvironmentVariableResult> getEnvironmentVariable(GetEnvironmentVariableArgs args, InvokeOptions options)
    public static Output<GetEnvironmentVariableResult> getEnvironmentVariable(GetEnvironmentVariableArgs args, InvokeOptions options)
    
    fn::invoke:
      function: dbtcloud:index/getEnvironmentVariable:getEnvironmentVariable
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name for the variable
    ProjectId int
    Project ID the variable exists in
    Name string
    Name for the variable
    ProjectId int
    Project ID the variable exists in
    name String
    Name for the variable
    projectId Integer
    Project ID the variable exists in
    name string
    Name for the variable
    projectId number
    Project ID the variable exists in
    name str
    Name for the variable
    project_id int
    Project ID the variable exists in
    name String
    Name for the variable
    projectId Number
    Project ID the variable exists in

    getEnvironmentVariable Result

    The following output properties are available:

    EnvironmentValues Dictionary<string, string>
    Map containing the environment variables
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name for the variable
    ProjectId int
    Project ID the variable exists in
    EnvironmentValues map[string]string
    Map containing the environment variables
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name for the variable
    ProjectId int
    Project ID the variable exists in
    environmentValues Map<String,String>
    Map containing the environment variables
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name for the variable
    projectId Integer
    Project ID the variable exists in
    environmentValues {[key: string]: string}
    Map containing the environment variables
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name for the variable
    projectId number
    Project ID the variable exists in
    environment_values Mapping[str, str]
    Map containing the environment variables
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name for the variable
    project_id int
    Project ID the variable exists in
    environmentValues Map<String>
    Map containing the environment variables
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name for the variable
    projectId Number
    Project ID the variable exists in

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    Viewing docs for dbt Cloud v0.1.31 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.