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 a Harness environment List.
Using getEnvironmentList
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 getEnvironmentList(args: GetEnvironmentListArgs, opts?: InvokeOptions): Promise<GetEnvironmentListResult>
function getEnvironmentListOutput(args: GetEnvironmentListOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentListResult>def get_environment_list(org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentListResult
def get_environment_list_output(org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentListResult]func GetEnvironmentList(ctx *Context, args *GetEnvironmentListArgs, opts ...InvokeOption) (*GetEnvironmentListResult, error)
func GetEnvironmentListOutput(ctx *Context, args *GetEnvironmentListOutputArgs, opts ...InvokeOption) GetEnvironmentListResultOutput> Note: This function is named GetEnvironmentList in the Go SDK.
public static class GetEnvironmentList
{
public static Task<GetEnvironmentListResult> InvokeAsync(GetEnvironmentListArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentListResult> Invoke(GetEnvironmentListInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentListResult> getEnvironmentList(GetEnvironmentListArgs args, InvokeOptions options)
public static Output<GetEnvironmentListResult> getEnvironmentList(GetEnvironmentListArgs args, InvokeOptions options)
fn::invoke:
function: harness:platform/getEnvironmentList:getEnvironmentList
arguments:
# arguments dictionaryThe following arguments are supported:
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
getEnvironmentList Result
The following output properties are available:
- Environments
List<Get
Environment List Environment> - Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Environments
[]Get
Environment List Environment - Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- environments
List<Get
Environment List Environment> - id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- environments
Get
Environment List Environment[] - id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- environments
Sequence[Get
Environment List Environment] - id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- environments List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
Supporting Types
GetEnvironmentListEnvironment
- Identifier string
- Name string
- Identifier string
- Name string
- identifier String
- name String
- identifier string
- name string
- identifier str
- name str
- identifier String
- name String
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
