1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getInfraVariableSet
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

harness.platform.getInfraVariableSet

Explore with Pulumi AI

harness logo
Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi

    Data source for retrieving Variable Sets.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = harness.platform.getInfraVariableSet({
        identifier: "identifier",
    });
    const testorg = harness.platform.getInfraVariableSet({
        identifier: "identifier",
        orgId: "someorg",
    });
    const testproj = harness.platform.getInfraVariableSet({
        identifier: "identifier",
        orgId: "someorg",
        projectId: "someproj",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.get_infra_variable_set(identifier="identifier")
    testorg = harness.platform.get_infra_variable_set(identifier="identifier",
        org_id="someorg")
    testproj = harness.platform.get_infra_variable_set(identifier="identifier",
        org_id="someorg",
        project_id="someproj")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "identifier",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("someorg"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = platform.LookupInfraVariableSet(ctx, &platform.LookupInfraVariableSetArgs{
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("someorg"),
    			ProjectId:  pulumi.StringRef("someproj"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "identifier",
        });
    
        var testorg = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "identifier",
            OrgId = "someorg",
        });
    
        var testproj = Harness.Platform.GetInfraVariableSet.Invoke(new()
        {
            Identifier = "identifier",
            OrgId = "someorg",
            ProjectId = "someproj",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    import com.pulumi.harness.platform.inputs.GetInfraVariableSetArgs;
    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 test = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("identifier")
                .build());
    
            final var testorg = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("identifier")
                .orgId("someorg")
                .build());
    
            final var testproj = PlatformFunctions.getInfraVariableSet(GetInfraVariableSetArgs.builder()
                .identifier("identifier")
                .orgId("someorg")
                .projectId("someproj")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: identifier
      testorg:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: identifier
            orgId: someorg
      testproj:
        fn::invoke:
          function: harness:platform:getInfraVariableSet
          arguments:
            identifier: identifier
            orgId: someorg
            projectId: someproj
    

    Using getInfraVariableSet

    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 getInfraVariableSet(args: GetInfraVariableSetArgs, opts?: InvokeOptions): Promise<GetInfraVariableSetResult>
    function getInfraVariableSetOutput(args: GetInfraVariableSetOutputArgs, opts?: InvokeOptions): Output<GetInfraVariableSetResult>
    def get_infra_variable_set(connectors: Optional[Sequence[GetInfraVariableSetConnector]] = None,
                               environment_variables: Optional[Sequence[GetInfraVariableSetEnvironmentVariable]] = None,
                               identifier: Optional[str] = None,
                               name: Optional[str] = None,
                               org_id: Optional[str] = None,
                               project_id: Optional[str] = None,
                               terraform_variable_files: Optional[Sequence[GetInfraVariableSetTerraformVariableFile]] = None,
                               terraform_variables: Optional[Sequence[GetInfraVariableSetTerraformVariable]] = None,
                               opts: Optional[InvokeOptions] = None) -> GetInfraVariableSetResult
    def get_infra_variable_set_output(connectors: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetConnectorArgs]]]] = None,
                               environment_variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetEnvironmentVariableArgs]]]] = None,
                               identifier: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               org_id: Optional[pulumi.Input[str]] = None,
                               project_id: Optional[pulumi.Input[str]] = None,
                               terraform_variable_files: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetTerraformVariableFileArgs]]]] = None,
                               terraform_variables: Optional[pulumi.Input[Sequence[pulumi.Input[GetInfraVariableSetTerraformVariableArgs]]]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetInfraVariableSetResult]
    func LookupInfraVariableSet(ctx *Context, args *LookupInfraVariableSetArgs, opts ...InvokeOption) (*LookupInfraVariableSetResult, error)
    func LookupInfraVariableSetOutput(ctx *Context, args *LookupInfraVariableSetOutputArgs, opts ...InvokeOption) LookupInfraVariableSetResultOutput

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

    public static class GetInfraVariableSet 
    {
        public static Task<GetInfraVariableSetResult> InvokeAsync(GetInfraVariableSetArgs args, InvokeOptions? opts = null)
        public static Output<GetInfraVariableSetResult> Invoke(GetInfraVariableSetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
    public static Output<GetInfraVariableSetResult> getInfraVariableSet(GetInfraVariableSetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: harness:platform/getInfraVariableSet:getInfraVariableSet
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    Unique identifier of the resource.
    Connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    EnvironmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    TerraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    TerraformVariables List<GetInfraVariableSetTerraformVariable>
    Identifier string
    Unique identifier of the resource.
    Connectors []GetInfraVariableSetConnector
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    EnvironmentVariables []GetInfraVariableSetEnvironmentVariable
    Environment variables configured on the Variable Set
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    TerraformVariableFiles []GetInfraVariableSetTerraformVariableFile
    TerraformVariables []GetInfraVariableSetTerraformVariable
    identifier String
    Unique identifier of the resource.
    connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    environmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    terraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    terraformVariables List<GetInfraVariableSetTerraformVariable>
    identifier string
    Unique identifier of the resource.
    connectors GetInfraVariableSetConnector[]
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    environmentVariables GetInfraVariableSetEnvironmentVariable[]
    Environment variables configured on the Variable Set
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    terraformVariableFiles GetInfraVariableSetTerraformVariableFile[]
    terraformVariables GetInfraVariableSetTerraformVariable[]
    identifier str
    Unique identifier of the resource.
    connectors Sequence[GetInfraVariableSetConnector]
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    environment_variables Sequence[GetInfraVariableSetEnvironmentVariable]
    Environment variables configured on the Variable Set
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    terraform_variable_files Sequence[GetInfraVariableSetTerraformVariableFile]
    terraform_variables Sequence[GetInfraVariableSetTerraformVariable]
    identifier String
    Unique identifier of the resource.
    connectors List<Property Map>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    environmentVariables List<Property Map>
    Environment variables configured on the Variable Set
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    terraformVariableFiles List<Property Map>
    terraformVariables List<Property Map>

    getInfraVariableSet Result

    The following output properties are available:

    Connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    Description string
    Description of the resource.
    EnvironmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource.
    Tags List<string>
    Tags to associate with the resource.
    TerraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    TerraformVariables List<GetInfraVariableSetTerraformVariable>
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Connectors []GetInfraVariableSetConnector
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    Description string
    Description of the resource.
    EnvironmentVariables []GetInfraVariableSetEnvironmentVariable
    Environment variables configured on the Variable Set
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Unique identifier of the resource.
    Tags []string
    Tags to associate with the resource.
    TerraformVariableFiles []GetInfraVariableSetTerraformVariableFile
    TerraformVariables []GetInfraVariableSetTerraformVariable
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    connectors List<GetInfraVariableSetConnector>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    description String
    Description of the resource.
    environmentVariables List<GetInfraVariableSetEnvironmentVariable>
    Environment variables configured on the Variable Set
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource.
    tags List<String>
    Tags to associate with the resource.
    terraformVariableFiles List<GetInfraVariableSetTerraformVariableFile>
    terraformVariables List<GetInfraVariableSetTerraformVariable>
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    connectors GetInfraVariableSetConnector[]
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    description string
    Description of the resource.
    environmentVariables GetInfraVariableSetEnvironmentVariable[]
    Environment variables configured on the Variable Set
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Unique identifier of the resource.
    tags string[]
    Tags to associate with the resource.
    terraformVariableFiles GetInfraVariableSetTerraformVariableFile[]
    terraformVariables GetInfraVariableSetTerraformVariable[]
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    connectors Sequence[GetInfraVariableSetConnector]
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    description str
    Description of the resource.
    environment_variables Sequence[GetInfraVariableSetEnvironmentVariable]
    Environment variables configured on the Variable Set
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Unique identifier of the resource.
    tags Sequence[str]
    Tags to associate with the resource.
    terraform_variable_files Sequence[GetInfraVariableSetTerraformVariableFile]
    terraform_variables Sequence[GetInfraVariableSetTerraformVariable]
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    connectors List<Property Map>
    Provider connectors configured on the Variable Set. Only one connector of a type is supported
    description String
    Description of the resource.
    environmentVariables List<Property Map>
    Environment variables configured on the Variable Set
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Unique identifier of the resource.
    tags List<String>
    Tags to associate with the resource.
    terraformVariableFiles List<Property Map>
    terraformVariables List<Property Map>
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    Supporting Types

    GetInfraVariableSetConnector

    ConnectorRef string
    Connector Ref is the reference to the connector
    Type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    ConnectorRef string
    Connector Ref is the reference to the connector
    Type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef String
    Connector Ref is the reference to the connector
    type String
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef string
    Connector Ref is the reference to the connector
    type string
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connector_ref str
    Connector Ref is the reference to the connector
    type str
    Type is the connector type of the connector. Supported types: aws, azure, gcp
    connectorRef String
    Connector Ref is the reference to the connector
    type String
    Type is the connector type of the connector. Supported types: aws, azure, gcp

    GetInfraVariableSetEnvironmentVariable

    Key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    Value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    ValueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    Key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    Value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    ValueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    key String
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value String
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType String
    Value type indicates the value type of the variable. Currently we support string and secret.
    key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    key str
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value str
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    value_type str
    Value type indicates the value type of the variable. Currently we support string and secret.
    key String
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value String
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType String
    Value type indicates the value type of the variable. Currently we support string and secret.

    GetInfraVariableSetTerraformVariable

    Key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    Value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    ValueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    Key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    Value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    ValueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    key String
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value String
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType String
    Value type indicates the value type of the variable. Currently we support string and secret.
    key string
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value string
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType string
    Value type indicates the value type of the variable. Currently we support string and secret.
    key str
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value str
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    value_type str
    Value type indicates the value type of the variable. Currently we support string and secret.
    key String
    Key is the identifier for the variable. Must be unique within the Variable Set.
    value String
    Value is the value of the variable. For string value types this field should contain the value of the variable. For secret value types this should contain a reference to a valid harness secret.
    valueType String
    Value type indicates the value type of the variable. Currently we support string and secret.

    GetInfraVariableSetTerraformVariableFile

    Repository string
    Repository is the name of the repository to fetch the code from.
    RepositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    RepositoryBranch string
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    RepositoryCommit string
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    RepositoryPath string
    Repository path is the path in which the variables reside.
    RepositorySha string
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.
    Repository string
    Repository is the name of the repository to fetch the code from.
    RepositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    RepositoryBranch string
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    RepositoryCommit string
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    RepositoryPath string
    Repository path is the path in which the variables reside.
    RepositorySha string
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.
    repository String
    Repository is the name of the repository to fetch the code from.
    repositoryConnector String
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryBranch String
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    repositoryCommit String
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    repositoryPath String
    Repository path is the path in which the variables reside.
    repositorySha String
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.
    repository string
    Repository is the name of the repository to fetch the code from.
    repositoryConnector string
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryBranch string
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    repositoryCommit string
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    repositoryPath string
    Repository path is the path in which the variables reside.
    repositorySha string
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.
    repository str
    Repository is the name of the repository to fetch the code from.
    repository_connector str
    Repository connector is the reference to the connector used to fetch the variables.
    repository_branch str
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    repository_commit str
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    repository_path str
    Repository path is the path in which the variables reside.
    repository_sha str
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.
    repository String
    Repository is the name of the repository to fetch the code from.
    repositoryConnector String
    Repository connector is the reference to the connector used to fetch the variables.
    repositoryBranch String
    Repository branch is the name of the branch to fetch the variables from. This cannot be set if repository commit or sha is set
    repositoryCommit String
    Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
    repositoryPath String
    Repository path is the path in which the variables reside.
    repositorySha String
    Repository commit is SHA to fetch the variables from. This cannot be set if repository branch or commit is set.

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.8.4 published on Thursday, Sep 11, 2025 by Pulumi