Harness v0.9.0 published on Wednesday, Oct 22, 2025 by Pulumi
harness.chaos.getHub
Data source for retrieving a Harness Chaos Hub
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = harness.chaos.getHub({
    name: "<name>",
    orgId: "<org_id>",
    projectId: "<project_id>",
});
import pulumi
import pulumi_harness as harness
example = harness.chaos.get_hub(name="<name>",
    org_id="<org_id>",
    project_id="<project_id>")
package main
import (
	"github.com/pulumi/pulumi-harness/sdk/go/harness/chaos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := chaos.LookupHub(ctx, &chaos.LookupHubArgs{
			Name:      "<name>",
			OrgId:     pulumi.StringRef("<org_id>"),
			ProjectId: pulumi.StringRef("<project_id>"),
		}, 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 example = Harness.Chaos.GetHub.Invoke(new()
    {
        Name = "<name>",
        OrgId = "<org_id>",
        ProjectId = "<project_id>",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.ChaosFunctions;
import com.pulumi.harness.chaos.inputs.GetHubArgs;
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 example = ChaosFunctions.getHub(GetHubArgs.builder()
            .name("<name>")
            .orgId("<org_id>")
            .projectId("<project_id>")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: harness:chaos:getHub
      arguments:
        name: <name>
        orgId: <org_id>
        projectId: <project_id>
Using getHub
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 getHub(args: GetHubArgs, opts?: InvokeOptions): Promise<GetHubResult>
function getHubOutput(args: GetHubOutputArgs, opts?: InvokeOptions): Output<GetHubResult>def get_hub(name: Optional[str] = None,
            org_id: Optional[str] = None,
            project_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetHubResult
def get_hub_output(name: Optional[pulumi.Input[str]] = None,
            org_id: Optional[pulumi.Input[str]] = None,
            project_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetHubResult]func LookupHub(ctx *Context, args *LookupHubArgs, opts ...InvokeOption) (*LookupHubResult, error)
func LookupHubOutput(ctx *Context, args *LookupHubOutputArgs, opts ...InvokeOption) LookupHubResultOutput> Note: This function is named LookupHub in the Go SDK.
public static class GetHub 
{
    public static Task<GetHubResult> InvokeAsync(GetHubArgs args, InvokeOptions? opts = null)
    public static Output<GetHubResult> Invoke(GetHubInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetHubResult> getHub(GetHubArgs args, InvokeOptions options)
public static Output<GetHubResult> getHub(GetHubArgs args, InvokeOptions options)
fn::invoke:
  function: harness:chaos/getHub:getHub
  arguments:
    # arguments dictionaryThe following arguments are supported:
- name str
- Name of the chaos hub
- org_id str
- The organization ID of the chaos hub
- project_id str
- The project ID of the chaos hub
getHub Result
The following output properties are available:
- ConnectorId string
- ID of the Git connector
- CreatedAt string
- Creation timestamp
- Description string
- Description of the chaos hub
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAvailable bool
- Whether the chaos hub is available
- IsDefault bool
- Whether this is the default chaos hub
- LastSynced stringAt 
- Timestamp of the last sync
- Name string
- Name of the chaos hub
- RepoBranch string
- Git repository branch
- RepoName string
- Name of the Git repository
- List<string>
- Tags associated with the chaos hub
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- ConnectorId string
- ID of the Git connector
- CreatedAt string
- Creation timestamp
- Description string
- Description of the chaos hub
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAvailable bool
- Whether the chaos hub is available
- IsDefault bool
- Whether this is the default chaos hub
- LastSynced stringAt 
- Timestamp of the last sync
- Name string
- Name of the chaos hub
- RepoBranch string
- Git repository branch
- RepoName string
- Name of the Git repository
- []string
- Tags associated with the chaos hub
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- connectorId String
- ID of the Git connector
- createdAt String
- Creation timestamp
- description String
- Description of the chaos hub
- id String
- The provider-assigned unique ID for this managed resource.
- isAvailable Boolean
- Whether the chaos hub is available
- isDefault Boolean
- Whether this is the default chaos hub
- lastSynced StringAt 
- Timestamp of the last sync
- name String
- Name of the chaos hub
- repoBranch String
- Git repository branch
- repoName String
- Name of the Git repository
- List<String>
- Tags associated with the chaos hub
- totalExperiments Integer
- Total number of experiments in the hub
- totalFaults Integer
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
- connectorId string
- ID of the Git connector
- createdAt string
- Creation timestamp
- description string
- Description of the chaos hub
- id string
- The provider-assigned unique ID for this managed resource.
- isAvailable boolean
- Whether the chaos hub is available
- isDefault boolean
- Whether this is the default chaos hub
- lastSynced stringAt 
- Timestamp of the last sync
- name string
- Name of the chaos hub
- repoBranch string
- Git repository branch
- repoName string
- Name of the Git repository
- string[]
- Tags associated with the chaos hub
- totalExperiments number
- Total number of experiments in the hub
- totalFaults number
- Total number of faults in the hub
- updatedAt string
- Last update timestamp
- orgId string
- The organization ID of the chaos hub
- projectId string
- The project ID of the chaos hub
- connector_id str
- ID of the Git connector
- created_at str
- Creation timestamp
- description str
- Description of the chaos hub
- id str
- The provider-assigned unique ID for this managed resource.
- is_available bool
- Whether the chaos hub is available
- is_default bool
- Whether this is the default chaos hub
- last_synced_ strat 
- Timestamp of the last sync
- name str
- Name of the chaos hub
- repo_branch str
- Git repository branch
- repo_name str
- Name of the Git repository
- Sequence[str]
- Tags associated with the chaos hub
- total_experiments int
- Total number of experiments in the hub
- total_faults int
- Total number of faults in the hub
- updated_at str
- Last update timestamp
- org_id str
- The organization ID of the chaos hub
- project_id str
- The project ID of the chaos hub
- connectorId String
- ID of the Git connector
- createdAt String
- Creation timestamp
- description String
- Description of the chaos hub
- id String
- The provider-assigned unique ID for this managed resource.
- isAvailable Boolean
- Whether the chaos hub is available
- isDefault Boolean
- Whether this is the default chaos hub
- lastSynced StringAt 
- Timestamp of the last sync
- name String
- Name of the chaos hub
- repoBranch String
- Git repository branch
- repoName String
- Name of the Git repository
- List<String>
- Tags associated with the chaos hub
- totalExperiments Number
- Total number of experiments in the hub
- totalFaults Number
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the harnessTerraform Provider.
 
