Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi
harness.platform.getInfraVariableSet
Explore with Pulumi AI
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",
    orgId: "org_id",
    projectId: "project_id",
});
import pulumi
import pulumi_harness as harness
test = harness.platform.get_infra_variable_set(identifier="identifier",
    org_id="org_id",
    project_id="project_id")
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",
			OrgId:      pulumi.StringRef("org_id"),
			ProjectId:  pulumi.StringRef("project_id"),
		}, 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",
        OrgId = "org_id",
        ProjectId = "project_id",
    });
});
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")
            .orgId("org_id")
            .projectId("project_id")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: harness:platform:getInfraVariableSet
      arguments:
        identifier: identifier
        orgId: org_id
        projectId: project_id
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 dictionaryThe following arguments are supported:
- Identifier string
- Identifier of the Variable Set
- Connectors
List<GetInfra Variable Set Connector> 
- Provider connector configured on the variable set
- EnvironmentVariables List<GetInfra Variable Set Environment Variable> 
- Environment variables configured on the variable set
- Name string
- Name of the Variable Set
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- TerraformVariable List<GetFiles Infra Variable Set Terraform Variable File> 
- TerraformVariables List<GetInfra Variable Set Terraform Variable> 
- Identifier string
- Identifier of the Variable Set
- Connectors
[]GetInfra Variable Set Connector 
- Provider connector configured on the variable set
- EnvironmentVariables []GetInfra Variable Set Environment Variable 
- Environment variables configured on the variable set
- Name string
- Name of the Variable Set
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- TerraformVariable []GetFiles Infra Variable Set Terraform Variable File 
- TerraformVariables []GetInfra Variable Set Terraform Variable 
- identifier String
- Identifier of the Variable Set
- connectors
List<GetInfra Variable Set Connector> 
- Provider connector configured on the variable set
- environmentVariables List<GetInfra Variable Set Environment Variable> 
- Environment variables configured on the variable set
- name String
- Name of the Variable Set
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- terraformVariable List<GetFiles Infra Variable Set Terraform Variable File> 
- terraformVariables List<GetInfra Variable Set Terraform Variable> 
- identifier string
- Identifier of the Variable Set
- connectors
GetInfra Variable Set Connector[] 
- Provider connector configured on the variable set
- environmentVariables GetInfra Variable Set Environment Variable[] 
- Environment variables configured on the variable set
- name string
- Name of the Variable Set
- orgId string
- Organization Identifier
- projectId string
- Project Identifier
- terraformVariable GetFiles Infra Variable Set Terraform Variable File[] 
- terraformVariables GetInfra Variable Set Terraform Variable[] 
- identifier str
- Identifier of the Variable Set
- connectors
Sequence[GetInfra Variable Set Connector] 
- Provider connector configured on the variable set
- environment_variables Sequence[GetInfra Variable Set Environment Variable] 
- Environment variables configured on the variable set
- name str
- Name of the Variable Set
- org_id str
- Organization Identifier
- project_id str
- Project Identifier
- terraform_variable_ Sequence[Getfiles Infra Variable Set Terraform Variable File] 
- terraform_variables Sequence[GetInfra Variable Set Terraform Variable] 
- identifier String
- Identifier of the Variable Set
- connectors List<Property Map>
- Provider connector configured on the variable set
- environmentVariables List<Property Map>
- Environment variables configured on the variable set
- name String
- Name of the Variable Set
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- terraformVariable List<Property Map>Files 
- terraformVariables List<Property Map>
getInfraVariableSet Result
The following output properties are available:
- Connectors
List<GetInfra Variable Set Connector> 
- Provider connector configured on the variable set
- Description string
- Description of the Variable Set
- EnvironmentVariables List<GetInfra Variable Set Environment Variable> 
- Environment variables configured on the variable set
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Variable Set
- List<string>
- TerraformVariable List<GetFiles Infra Variable Set Terraform Variable File> 
- TerraformVariables List<GetInfra Variable Set Terraform Variable> 
- Name string
- Name of the Variable Set
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- Connectors
[]GetInfra Variable Set Connector 
- Provider connector configured on the variable set
- Description string
- Description of the Variable Set
- EnvironmentVariables []GetInfra Variable Set Environment Variable 
- Environment variables configured on the variable set
- Id string
- The provider-assigned unique ID for this managed resource.
- Identifier string
- Identifier of the Variable Set
- []string
- TerraformVariable []GetFiles Infra Variable Set Terraform Variable File 
- TerraformVariables []GetInfra Variable Set Terraform Variable 
- Name string
- Name of the Variable Set
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- connectors
List<GetInfra Variable Set Connector> 
- Provider connector configured on the variable set
- description String
- Description of the Variable Set
- environmentVariables List<GetInfra Variable Set Environment Variable> 
- Environment variables configured on the variable set
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Variable Set
- List<String>
- terraformVariable List<GetFiles Infra Variable Set Terraform Variable File> 
- terraformVariables List<GetInfra Variable Set Terraform Variable> 
- name String
- Name of the Variable Set
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- connectors
GetInfra Variable Set Connector[] 
- Provider connector configured on the variable set
- description string
- Description of the Variable Set
- environmentVariables GetInfra Variable Set Environment Variable[] 
- Environment variables configured on the variable set
- id string
- The provider-assigned unique ID for this managed resource.
- identifier string
- Identifier of the Variable Set
- string[]
- terraformVariable GetFiles Infra Variable Set Terraform Variable File[] 
- terraformVariables GetInfra Variable Set Terraform Variable[] 
- name string
- Name of the Variable Set
- orgId string
- Organization Identifier
- projectId string
- Project Identifier
- connectors
Sequence[GetInfra Variable Set Connector] 
- Provider connector configured on the variable set
- description str
- Description of the Variable Set
- environment_variables Sequence[GetInfra Variable Set Environment Variable] 
- Environment variables configured on the variable set
- id str
- The provider-assigned unique ID for this managed resource.
- identifier str
- Identifier of the Variable Set
- Sequence[str]
- terraform_variable_ Sequence[Getfiles Infra Variable Set Terraform Variable File] 
- terraform_variables Sequence[GetInfra Variable Set Terraform Variable] 
- name str
- Name of the Variable Set
- org_id str
- Organization Identifier
- project_id str
- Project Identifier
- connectors List<Property Map>
- Provider connector configured on the variable set
- description String
- Description of the Variable Set
- environmentVariables List<Property Map>
- Environment variables configured on the variable set
- id String
- The provider-assigned unique ID for this managed resource.
- identifier String
- Identifier of the Variable Set
- List<String>
- terraformVariable List<Property Map>Files 
- terraformVariables List<Property Map>
- name String
- Name of the Variable Set
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
Supporting Types
GetInfraVariableSetConnector    
- ConnectorRef string
- Unique identifier of the connector.
- Type string
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- ConnectorRef string
- Unique identifier of the connector.
- Type string
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connectorRef String
- Unique identifier of the connector.
- type String
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connectorRef string
- Unique identifier of the connector.
- type string
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connector_ref str
- Unique identifier of the connector.
- type str
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
- connectorRef String
- Unique identifier of the connector.
- type String
- Type indicates the type of the connector. Currently we support aws, azure, gcp.
GetInfraVariableSetEnvironmentVariable     
- key str
- Key is the identifier for the variable`
- value str
- value is the value of the variable
- value_type str
- Value type indicates the value type of the variable, text or secret
GetInfraVariableSetTerraformVariable     
- key str
- Key is the identifier for the variable`
- value str
- value is the value of the variable
- value_type str
- Value type indicates the value type of the variable, text or 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 harnessTerraform Provider.
