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 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:
- Connector
Id string - ID of the Git connector
- Created
At string - Creation timestamp
- Description string
- Description of the chaos hub
- Id string
- 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 stringAt - Timestamp of the last sync
- Name string
- Name of the chaos hub
- Repo
Branch string - Git repository branch
- Repo
Name string - Name of the Git repository
- List<string>
- 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 string - Last update timestamp
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- Connector
Id string - ID of the Git connector
- Created
At string - Creation timestamp
- Description string
- Description of the chaos hub
- Id string
- 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 stringAt - Timestamp of the last sync
- Name string
- Name of the chaos hub
- Repo
Branch string - Git repository branch
- Repo
Name string - Name of the Git repository
- []string
- 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 string - Last update timestamp
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- connector
Id String - ID of the Git connector
- created
At String - Creation timestamp
- description String
- Description of the chaos hub
- id String
- The provider-assigned unique ID for this managed resource.
- is
Available Boolean - Whether the chaos hub is available
- is
Default Boolean - Whether this is the default chaos hub
- last
Synced StringAt - Timestamp of the last sync
- name String
- Name of the chaos hub
- repo
Branch String - Git repository branch
- repo
Name String - Name of the Git repository
- List<String>
- Tags associated with the chaos hub
- total
Experiments Integer - Total number of experiments in the hub
- total
Faults Integer - Total number of faults in the hub
- updated
At String - Last update timestamp
- org
Id String - The organization ID of the chaos hub
- project
Id String - The project ID of the chaos hub
- connector
Id string - ID of the Git connector
- created
At string - Creation timestamp
- description string
- Description of the chaos hub
- id string
- The provider-assigned unique ID for this managed resource.
- is
Available boolean - Whether the chaos hub is available
- is
Default boolean - Whether this is the default chaos hub
- last
Synced stringAt - Timestamp of the last sync
- name string
- Name of the chaos hub
- repo
Branch string - Git repository branch
- repo
Name string - Name of the Git repository
- string[]
- Tags associated with the chaos hub
- total
Experiments number - Total number of experiments in the hub
- total
Faults number - Total number of faults in the hub
- updated
At string - Last update timestamp
- org
Id string - The organization ID of the chaos hub
- project
Id 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
- connector
Id String - ID of the Git connector
- created
At String - Creation timestamp
- description String
- Description of the chaos hub
- id String
- The provider-assigned unique ID for this managed resource.
- is
Available Boolean - Whether the chaos hub is available
- is
Default Boolean - Whether this is the default chaos hub
- last
Synced StringAt - Timestamp of the last sync
- name String
- Name of the chaos hub
- repo
Branch String - Git repository branch
- repo
Name String - Name of the Git repository
- List<String>
- Tags associated with the chaos hub
- total
Experiments Number - Total number of experiments in the hub
- total
Faults Number - Total number of faults in the hub
- updated
At String - Last update timestamp
- org
Id String - The organization ID of the chaos hub
- project
Id 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.
Viewing docs for Harness v0.11.7
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
