Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 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 dictionaryThe following arguments are supported:
- Identifier string
- Unique identifier of the resource.
- Connectors
List<Get
Infra Variable Set Connector> - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- Environment
Variables List<GetInfra Variable Set Environment Variable> - Environment variables configured on the Variable Set
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File> - Terraform variables files configured on the Variable Set (see below for nested schema)
- Terraform
Variables List<GetInfra Variable Set Terraform Variable> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- Identifier string
- Unique identifier of the resource.
- Connectors
[]Get
Infra Variable Set Connector - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- Environment
Variables []GetInfra Variable Set Environment Variable - Environment variables configured on the Variable Set
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Terraform
Variable []GetFiles Infra Variable Set Terraform Variable File - Terraform variables files configured on the Variable Set (see below for nested schema)
- Terraform
Variables []GetInfra Variable Set Terraform Variable - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- identifier String
- Unique identifier of the resource.
- connectors
List<Get
Infra Variable Set Connector> - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- environment
Variables List<GetInfra Variable Set Environment Variable> - Environment variables configured on the Variable Set
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File> - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables List<GetInfra Variable Set Terraform Variable> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- identifier string
- Unique identifier of the resource.
- connectors
Get
Infra Variable Set Connector[] - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- environment
Variables GetInfra Variable Set Environment Variable[] - Environment variables configured on the Variable Set
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- terraform
Variable GetFiles Infra Variable Set Terraform Variable File[] - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables GetInfra Variable Set Terraform Variable[] - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- identifier str
- Unique identifier of the resource.
- connectors
Sequence[Get
Infra Variable Set Connector] - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- environment_
variables Sequence[GetInfra Variable Set Environment Variable] - 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_ Sequence[Getfiles Infra Variable Set Terraform Variable File] - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform_
variables Sequence[GetInfra Variable Set Terraform Variable] - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- 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
- environment
Variables List<Property Map> - Environment variables configured on the Variable Set
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- terraform
Variable List<Property Map>Files - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables List<Property Map> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
getInfraVariableSet Result
The following output properties are available:
- Connectors
List<Get
Infra Variable Set Connector> - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- Description string
- Description of the resource.
- Environment
Variables 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
- Unique identifier of the resource.
- List<string>
- Tags to associate with the resource.
- Terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File> - Terraform variables files configured on the Variable Set (see below for nested schema)
- Terraform
Variables List<GetInfra Variable Set Terraform Variable> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Connectors
[]Get
Infra Variable Set Connector - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- Description string
- Description of the resource.
- Environment
Variables []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
- Unique identifier of the resource.
- []string
- Tags to associate with the resource.
- Terraform
Variable []GetFiles Infra Variable Set Terraform Variable File - Terraform variables files configured on the Variable Set (see below for nested schema)
- Terraform
Variables []GetInfra Variable Set Terraform Variable - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- connectors
List<Get
Infra Variable Set Connector> - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- description String
- Description of the resource.
- environment
Variables 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
- Unique identifier of the resource.
- List<String>
- Tags to associate with the resource.
- terraform
Variable List<GetFiles Infra Variable Set Terraform Variable File> - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables List<GetInfra Variable Set Terraform Variable> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- connectors
Get
Infra Variable Set Connector[] - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- description string
- Description of the resource.
- environment
Variables 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
- Unique identifier of the resource.
- string[]
- Tags to associate with the resource.
- terraform
Variable GetFiles Infra Variable Set Terraform Variable File[] - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables GetInfra Variable Set Terraform Variable[] - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- connectors
Sequence[Get
Infra Variable Set Connector] - Provider connectors configured on the Variable Set. Only one connector of a type is supported
- description str
- Description of the resource.
- 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
- Unique identifier of the resource.
- Sequence[str]
- Tags to associate with the resource.
- terraform_
variable_ Sequence[Getfiles Infra Variable Set Terraform Variable File] - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform_
variables Sequence[GetInfra Variable Set Terraform Variable] - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- 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.
- environment
Variables 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.
- List<String>
- Tags to associate with the resource.
- terraform
Variable List<Property Map>Files - Terraform variables files configured on the Variable Set (see below for nested schema)
- terraform
Variables List<Property Map> - Terraform variables configured on the Variable Set. Terraform variable keys must be unique within the Variable Set. (see below for nested schema)
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Supporting Types
GetInfraVariableSetConnector
- Connector
Ref 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 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 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 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
- connector
Ref 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.
- Value
Type 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.
- Value
Type 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.
- value
Type 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.
- value
Type 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.
- value
Type 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.
- Value
Type 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.
- Value
Type 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.
- value
Type 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.
- value
Type 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.
- value
Type 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.
- Repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
- Repository
Branch 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
- Repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- Repository
Path string - Repository path is the path in which the variables reside.
- Repository
Sha 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.
- Repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
- Repository
Branch 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
- Repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- Repository
Path string - Repository path is the path in which the variables reside.
- Repository
Sha 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.
- repository
Connector String - Repository connector is the reference to the connector used to fetch the variables.
- repository
Branch 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
- repository
Commit String - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repository
Path String - Repository path is the path in which the variables reside.
- repository
Sha 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.
- repository
Connector string - Repository connector is the reference to the connector used to fetch the variables.
- repository
Branch 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
- repository
Commit string - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repository
Path string - Repository path is the path in which the variables reside.
- repository
Sha 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.
- repository
Connector String - Repository connector is the reference to the connector used to fetch the variables.
- repository
Branch 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
- repository
Commit String - Repository commit is tag to fetch the variables from. This cannot be set if repository branch or sha is set.
- repository
Path String - Repository path is the path in which the variables reside.
- repository
Sha 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.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
