Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi
harness.platform.getInfraModules
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 dictionarygetInfraModules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Modules
List<Get
Infra Modules Module> - List of modules
- Id string
- The provider-assigned unique ID for this managed resource.
- Modules
[]Get
Infra Modules Module - List of modules
- id String
- The provider-assigned unique ID for this managed resource.
- modules
List<Get
Infra Modules Module> - List of modules
- id string
- The provider-assigned unique ID for this managed resource.
- modules
Get
Infra Modules Module[] - List of modules
- id str
- The provider-assigned unique ID for this managed resource.
- modules
Sequence[Get
Infra Modules Module] - 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
- Repository
Branch string - Repository branch
- Repository
Commit string - Repository commit
- Repository
Connector string - Repository connector reference
- Repository
Path string - Path within repository
- Repository
Url string - Repository URL
- Synced int
- Timestamp when the module was last synced
- System string
- Provider of the module
- string
- 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 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
- Repository
Branch string - Repository branch
- Repository
Commit string - Repository commit
- Repository
Connector string - Repository connector reference
- Repository
Path string - Path within repository
- Repository
Url string - Repository URL
- Synced int
- Timestamp when the module was last synced
- System string
- Provider of the module
- string
- 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 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
- repository
Branch String - Repository branch
- repository
Commit String - Repository commit
- repository
Connector String - Repository connector reference
- repository
Path String - Path within repository
- repository
Url String - Repository URL
- synced Integer
- Timestamp when the module was last synced
- system String
- Provider of the module
- String
- Tags associated with the module
- testing
Enabled 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
- repository
Branch string - Repository branch
- repository
Commit string - Repository commit
- repository
Connector string - Repository connector reference
- repository
Path string - Path within repository
- repository
Url string - Repository URL
- synced number
- Timestamp when the module was last synced
- system string
- Provider of the module
- string
- Tags associated with the module
- testing
Enabled 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
- 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
- repository
Branch String - Repository branch
- repository
Commit String - Repository commit
- repository
Connector String - Repository connector reference
- repository
Path String - Path within repository
- repository
Url String - Repository URL
- synced Number
- Timestamp when the module was last synced
- system String
- Provider of the module
- String
- Tags associated with the module
- testing
Enabled 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
harnessTerraform Provider.
