1. Packages
  2. Harness Provider
  3. API Docs
  4. platform
  5. getInfraModules
Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi

harness.platform.getInfraModules

Get Started
harness logo
Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi

    Data source for retrieving a list of modules from the module registry.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const all = harness.platform.getInfraModules({});
    
    import pulumi
    import pulumi_harness as harness
    
    all = harness.platform.get_infra_modules()
    
    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.GetInfraModules(ctx, map[string]interface{}{}, 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 all = Harness.Platform.GetInfraModules.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    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 all = PlatformFunctions.getInfraModules(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: harness:platform:getInfraModules
          arguments: {}
    

    Using getInfraModules

    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 getInfraModules(opts?: InvokeOptions): Promise<GetInfraModulesResult>
    function getInfraModulesOutput(opts?: InvokeOptions): Output<GetInfraModulesResult>
    def get_infra_modules(opts: Optional[InvokeOptions] = None) -> GetInfraModulesResult
    def get_infra_modules_output(opts: Optional[InvokeOptions] = None) -> Output[GetInfraModulesResult]
    func GetInfraModules(ctx *Context, opts ...InvokeOption) (*GetInfraModulesResult, error)
    func GetInfraModulesOutput(ctx *Context, opts ...InvokeOption) GetInfraModulesResultOutput

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

    public static class GetInfraModules 
    {
        public static Task<GetInfraModulesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetInfraModulesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInfraModulesResult> getInfraModules(InvokeOptions options)
    public static Output<GetInfraModulesResult> getInfraModules(InvokeOptions options)
    
    fn::invoke:
      function: harness:platform/getInfraModules:getInfraModules
      arguments:
        # arguments dictionary

    getInfraModules Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Modules List<GetInfraModulesModule>
    List of modules
    Id string
    The provider-assigned unique ID for this managed resource.
    Modules []GetInfraModulesModule
    List of modules
    id String
    The provider-assigned unique ID for this managed resource.
    modules List<GetInfraModulesModule>
    List of modules
    id string
    The provider-assigned unique ID for this managed resource.
    modules GetInfraModulesModule[]
    List of modules
    id str
    The provider-assigned unique ID for this managed resource.
    modules Sequence[GetInfraModulesModule]
    List of modules
    id String
    The provider-assigned unique ID for this managed resource.
    modules List<Property Map>
    List of modules

    Supporting Types

    GetInfraModulesModule

    Account string
    Account that owns the module
    Created int
    Timestamp when the module was created
    Description string
    Description of the module
    Id string
    Identifier of the module
    Name string
    Name of the module
    Org string
    Organization that owns the module
    Project string
    Project that owns the module
    Repository string
    Repository where the module is stored
    RepositoryBranch string
    Repository branch
    RepositoryCommit string
    Repository commit
    RepositoryConnector string
    Repository connector reference
    RepositoryPath string
    Path within repository
    RepositoryUrl string
    Repository URL
    Synced int
    Timestamp when the module was last synced
    System string
    Provider of the module
    Tags string
    Tags associated with the module
    TestingEnabled bool
    Whether testing is enabled for the module
    Updated int
    Timestamp when the module was last modified
    Account string
    Account that owns the module
    Created int
    Timestamp when the module was created
    Description string
    Description of the module
    Id string
    Identifier of the module
    Name string
    Name of the module
    Org string
    Organization that owns the module
    Project string
    Project that owns the module
    Repository string
    Repository where the module is stored
    RepositoryBranch string
    Repository branch
    RepositoryCommit string
    Repository commit
    RepositoryConnector string
    Repository connector reference
    RepositoryPath string
    Path within repository
    RepositoryUrl string
    Repository URL
    Synced int
    Timestamp when the module was last synced
    System string
    Provider of the module
    Tags string
    Tags associated with the module
    TestingEnabled bool
    Whether testing is enabled for the module
    Updated int
    Timestamp when the module was last modified
    account String
    Account that owns the module
    created Integer
    Timestamp when the module was created
    description String
    Description of the module
    id String
    Identifier of the module
    name String
    Name of the module
    org String
    Organization that owns the module
    project String
    Project that owns the module
    repository String
    Repository where the module is stored
    repositoryBranch String
    Repository branch
    repositoryCommit String
    Repository commit
    repositoryConnector String
    Repository connector reference
    repositoryPath String
    Path within repository
    repositoryUrl String
    Repository URL
    synced Integer
    Timestamp when the module was last synced
    system String
    Provider of the module
    tags String
    Tags associated with the module
    testingEnabled Boolean
    Whether testing is enabled for the module
    updated Integer
    Timestamp when the module was last modified
    account string
    Account that owns the module
    created number
    Timestamp when the module was created
    description string
    Description of the module
    id string
    Identifier of the module
    name string
    Name of the module
    org string
    Organization that owns the module
    project string
    Project that owns the module
    repository string
    Repository where the module is stored
    repositoryBranch string
    Repository branch
    repositoryCommit string
    Repository commit
    repositoryConnector string
    Repository connector reference
    repositoryPath string
    Path within repository
    repositoryUrl string
    Repository URL
    synced number
    Timestamp when the module was last synced
    system string
    Provider of the module
    tags string
    Tags associated with the module
    testingEnabled boolean
    Whether testing is enabled for the module
    updated number
    Timestamp when the module was last modified
    account str
    Account that owns the module
    created int
    Timestamp when the module was created
    description str
    Description of the module
    id str
    Identifier of the module
    name str
    Name of the module
    org str
    Organization that owns the module
    project str
    Project that owns the module
    repository str
    Repository where the module is stored
    repository_branch str
    Repository branch
    repository_commit str
    Repository commit
    repository_connector str
    Repository connector reference
    repository_path str
    Path within repository
    repository_url str
    Repository URL
    synced int
    Timestamp when the module was last synced
    system str
    Provider of the module
    tags str
    Tags associated with the module
    testing_enabled bool
    Whether testing is enabled for the module
    updated int
    Timestamp when the module was last modified
    account String
    Account that owns the module
    created Number
    Timestamp when the module was created
    description String
    Description of the module
    id String
    Identifier of the module
    name String
    Name of the module
    org String
    Organization that owns the module
    project String
    Project that owns the module
    repository String
    Repository where the module is stored
    repositoryBranch String
    Repository branch
    repositoryCommit String
    Repository commit
    repositoryConnector String
    Repository connector reference
    repositoryPath String
    Path within repository
    repositoryUrl String
    Repository URL
    synced Number
    Timestamp when the module was last synced
    system String
    Provider of the module
    tags String
    Tags associated with the module
    testingEnabled Boolean
    Whether testing is enabled for the module
    updated Number
    Timestamp when the module was last modified

    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.9.0 published on Wednesday, Oct 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate