1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getEnvironmentList
Harness v0.8.1 published on Saturday, Aug 23, 2025 by Pulumi

harness.platform.getEnvironmentList

Explore with Pulumi AI

harness logo
Harness v0.8.1 published on Saturday, Aug 23, 2025 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 dictionary

    The following arguments are supported:

    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    org_id str
    Unique identifier of the organization.
    project_id str
    Unique identifier of the project.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.

    getEnvironmentList Result

    The following output properties are available:

    Environments List<GetEnvironmentListEnvironment>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    Environments []GetEnvironmentListEnvironment
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    Unique identifier of the organization.
    ProjectId string
    Unique identifier of the project.
    environments List<GetEnvironmentListEnvironment>
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    Unique identifier of the organization.
    projectId String
    Unique identifier of the project.
    environments GetEnvironmentListEnvironment[]
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    Unique identifier of the organization.
    projectId string
    Unique identifier of the project.
    environments Sequence[GetEnvironmentListEnvironment]
    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.
    orgId String
    Unique identifier of the organization.
    projectId 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 String
    name String

    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.1 published on Saturday, Aug 23, 2025 by Pulumi