published on Tuesday, Apr 21, 2026 by Pulumi
published on Tuesday, Apr 21, 2026 by Pulumi
Resource for managing Harness Chaos Hub V2.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
// ============================================================================
// Harness Chaos Hub V2 Resource Examples
// ============================================================================
//
// Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Hubs can be created at account, org, or project scope
// - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
// - Use lifecycle { ignore_changes = [tags] } to prevent drift
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Account-Level Chaos Hub
// ----------------------------------------------------------------------------
// Account-level hub accessible across all orgs and projects
const accountLevel = new harness.chaos.HubV2("account_level", {
identity: "account-chaos-hub",
name: "Account Chaos Hub",
description: "Account-level chaos hub for enterprise-wide templates",
tags: [
"account",
"enterprise",
"chaos",
],
});
// ----------------------------------------------------------------------------
// Example 2: Org-Level Chaos Hub (TESTED ✅)
// ----------------------------------------------------------------------------
// Org-level hub accessible within the organization
const orgLevel = new harness.chaos.HubV2("org_level", {
orgId: _this.id,
identity: "org-chaos-hub",
name: "Org Chaos Hub",
description: "Org-level chaos hub for shared templates",
tags: [
"org",
"shared",
"chaos",
],
}, {
dependsOn: [_this],
});
// ----------------------------------------------------------------------------
// Example 3: Project-Level Chaos Hub
// ----------------------------------------------------------------------------
// Project-level hub for project-specific templates
const projectLevel = new harness.chaos.HubV2("project_level", {
orgId: _this.id,
projectId: thisHarnessPlatformProject.id,
identity: "project-chaos-hub",
name: "Project Chaos Hub",
description: "Project-level chaos hub for team templates",
tags: [
"project",
"team",
"chaos",
],
}, {
dependsOn: [thisHarnessPlatformProject],
});
import pulumi
import pulumi_harness as harness
# ============================================================================
# Harness Chaos Hub V2 Resource Examples
# ============================================================================
#
# Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Hubs can be created at account, org, or project scope
# - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
# - Use lifecycle { ignore_changes = [tags] } to prevent drift
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Account-Level Chaos Hub
# ----------------------------------------------------------------------------
# Account-level hub accessible across all orgs and projects
account_level = harness.chaos.HubV2("account_level",
identity="account-chaos-hub",
name="Account Chaos Hub",
description="Account-level chaos hub for enterprise-wide templates",
tags=[
"account",
"enterprise",
"chaos",
])
# ----------------------------------------------------------------------------
# Example 2: Org-Level Chaos Hub (TESTED ✅)
# ----------------------------------------------------------------------------
# Org-level hub accessible within the organization
org_level = harness.chaos.HubV2("org_level",
org_id=this["id"],
identity="org-chaos-hub",
name="Org Chaos Hub",
description="Org-level chaos hub for shared templates",
tags=[
"org",
"shared",
"chaos",
],
opts = pulumi.ResourceOptions(depends_on=[this]))
# ----------------------------------------------------------------------------
# Example 3: Project-Level Chaos Hub
# ----------------------------------------------------------------------------
# Project-level hub for project-specific templates
project_level = harness.chaos.HubV2("project_level",
org_id=this["id"],
project_id=this_harness_platform_project["id"],
identity="project-chaos-hub",
name="Project Chaos Hub",
description="Project-level chaos hub for team templates",
tags=[
"project",
"team",
"chaos",
],
opts = pulumi.ResourceOptions(depends_on=[this_harness_platform_project]))
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 {
// ============================================================================
// Harness Chaos Hub V2 Resource Examples
// ============================================================================
//
// Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Hubs can be created at account, org, or project scope
// - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
// - Use lifecycle { ignore_changes = [tags] } to prevent drift
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Account-Level Chaos Hub
// ----------------------------------------------------------------------------
// Account-level hub accessible across all orgs and projects
_, err := chaos.NewHubV2(ctx, "account_level", &chaos.HubV2Args{
Identity: pulumi.String("account-chaos-hub"),
Name: pulumi.String("Account Chaos Hub"),
Description: pulumi.String("Account-level chaos hub for enterprise-wide templates"),
Tags: pulumi.StringArray{
pulumi.String("account"),
pulumi.String("enterprise"),
pulumi.String("chaos"),
},
})
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 2: Org-Level Chaos Hub (TESTED ✅)
// ----------------------------------------------------------------------------
// Org-level hub accessible within the organization
_, err = chaos.NewHubV2(ctx, "org_level", &chaos.HubV2Args{
OrgId: pulumi.Any(this.Id),
Identity: pulumi.String("org-chaos-hub"),
Name: pulumi.String("Org Chaos Hub"),
Description: pulumi.String("Org-level chaos hub for shared templates"),
Tags: pulumi.StringArray{
pulumi.String("org"),
pulumi.String("shared"),
pulumi.String("chaos"),
},
}, pulumi.DependsOn([]pulumi.Resource{
this,
}))
if err != nil {
return err
}
// ----------------------------------------------------------------------------
// Example 3: Project-Level Chaos Hub
// ----------------------------------------------------------------------------
// Project-level hub for project-specific templates
_, err = chaos.NewHubV2(ctx, "project_level", &chaos.HubV2Args{
OrgId: pulumi.Any(this.Id),
ProjectId: pulumi.Any(thisHarnessPlatformProject.Id),
Identity: pulumi.String("project-chaos-hub"),
Name: pulumi.String("Project Chaos Hub"),
Description: pulumi.String("Project-level chaos hub for team templates"),
Tags: pulumi.StringArray{
pulumi.String("project"),
pulumi.String("team"),
pulumi.String("chaos"),
},
}, pulumi.DependsOn([]pulumi.Resource{
thisHarnessPlatformProject,
}))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
// ============================================================================
// Harness Chaos Hub V2 Resource Examples
// ============================================================================
//
// Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Hubs can be created at account, org, or project scope
// - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
// - Use lifecycle { ignore_changes = [tags] } to prevent drift
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Account-Level Chaos Hub
// ----------------------------------------------------------------------------
// Account-level hub accessible across all orgs and projects
var accountLevel = new Harness.Chaos.HubV2("account_level", new()
{
Identity = "account-chaos-hub",
Name = "Account Chaos Hub",
Description = "Account-level chaos hub for enterprise-wide templates",
Tags = new[]
{
"account",
"enterprise",
"chaos",
},
});
// ----------------------------------------------------------------------------
// Example 2: Org-Level Chaos Hub (TESTED ✅)
// ----------------------------------------------------------------------------
// Org-level hub accessible within the organization
var orgLevel = new Harness.Chaos.HubV2("org_level", new()
{
OrgId = @this.Id,
Identity = "org-chaos-hub",
Name = "Org Chaos Hub",
Description = "Org-level chaos hub for shared templates",
Tags = new[]
{
"org",
"shared",
"chaos",
},
}, new CustomResourceOptions
{
DependsOn =
{
@this,
},
});
// ----------------------------------------------------------------------------
// Example 3: Project-Level Chaos Hub
// ----------------------------------------------------------------------------
// Project-level hub for project-specific templates
var projectLevel = new Harness.Chaos.HubV2("project_level", new()
{
OrgId = @this.Id,
ProjectId = thisHarnessPlatformProject.Id,
Identity = "project-chaos-hub",
Name = "Project Chaos Hub",
Description = "Project-level chaos hub for team templates",
Tags = new[]
{
"project",
"team",
"chaos",
},
}, new CustomResourceOptions
{
DependsOn =
{
thisHarnessPlatformProject,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.HubV2;
import com.pulumi.harness.chaos.HubV2Args;
import com.pulumi.resources.CustomResourceOptions;
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) {
// ============================================================================
// Harness Chaos Hub V2 Resource Examples
// ============================================================================
//
// Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
// These examples are based on TESTED configurations from the e2e-test suite.
//
// Key Points:
// - Hubs can be created at account, org, or project scope
// - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
// - Use lifecycle { ignore_changes = [tags] } to prevent drift
// ============================================================================
// ----------------------------------------------------------------------------
// Example 1: Account-Level Chaos Hub
// ----------------------------------------------------------------------------
// Account-level hub accessible across all orgs and projects
var accountLevel = new HubV2("accountLevel", HubV2Args.builder()
.identity("account-chaos-hub")
.name("Account Chaos Hub")
.description("Account-level chaos hub for enterprise-wide templates")
.tags(
"account",
"enterprise",
"chaos")
.build());
// ----------------------------------------------------------------------------
// Example 2: Org-Level Chaos Hub (TESTED ✅)
// ----------------------------------------------------------------------------
// Org-level hub accessible within the organization
var orgLevel = new HubV2("orgLevel", HubV2Args.builder()
.orgId(this_.id())
.identity("org-chaos-hub")
.name("Org Chaos Hub")
.description("Org-level chaos hub for shared templates")
.tags(
"org",
"shared",
"chaos")
.build(), CustomResourceOptions.builder()
.dependsOn(this_)
.build());
// ----------------------------------------------------------------------------
// Example 3: Project-Level Chaos Hub
// ----------------------------------------------------------------------------
// Project-level hub for project-specific templates
var projectLevel = new HubV2("projectLevel", HubV2Args.builder()
.orgId(this_.id())
.projectId(thisHarnessPlatformProject.id())
.identity("project-chaos-hub")
.name("Project Chaos Hub")
.description("Project-level chaos hub for team templates")
.tags(
"project",
"team",
"chaos")
.build(), CustomResourceOptions.builder()
.dependsOn(thisHarnessPlatformProject)
.build());
}
}
resources:
# ============================================================================
# Harness Chaos Hub V2 Resource Examples
# ============================================================================
#
# Chaos Hubs store chaos artifacts (templates, faults, probes, actions).
# These examples are based on TESTED configurations from the e2e-test suite.
#
# Key Points:
# - Hubs can be created at account, org, or project scope
# - connector_ref, repo_branch, repo_name are OPTIONAL (not required)
# - Use lifecycle { ignore_changes = [tags] } to prevent drift
# ============================================================================
# ----------------------------------------------------------------------------
# Example 1: Account-Level Chaos Hub
# ----------------------------------------------------------------------------
# Account-level hub accessible across all orgs and projects
accountLevel:
type: harness:chaos:HubV2
name: account_level
properties:
identity: account-chaos-hub
name: Account Chaos Hub
description: Account-level chaos hub for enterprise-wide templates
tags:
- account
- enterprise
- chaos
# ----------------------------------------------------------------------------
# Example 2: Org-Level Chaos Hub (TESTED ✅)
# ----------------------------------------------------------------------------
# Org-level hub accessible within the organization
orgLevel:
type: harness:chaos:HubV2
name: org_level
properties:
orgId: ${this.id}
identity: org-chaos-hub
name: Org Chaos Hub
description: Org-level chaos hub for shared templates
tags:
- org
- shared
- chaos
options:
dependsOn:
- ${this}
# ----------------------------------------------------------------------------
# Example 3: Project-Level Chaos Hub
# ----------------------------------------------------------------------------
# Project-level hub for project-specific templates
projectLevel:
type: harness:chaos:HubV2
name: project_level
properties:
orgId: ${this.id}
projectId: ${thisHarnessPlatformProject.id}
identity: project-chaos-hub
name: Project Chaos Hub
description: Project-level chaos hub for team templates
tags:
- project
- team
- chaos
options:
dependsOn:
- ${thisHarnessPlatformProject}
Create HubV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HubV2(name: string, args: HubV2Args, opts?: CustomResourceOptions);@overload
def HubV2(resource_name: str,
args: HubV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def HubV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[str] = None,
connector_ref: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
repo_branch: Optional[str] = None,
repo_name: Optional[str] = None,
tags: Optional[Sequence[str]] = None)func NewHubV2(ctx *Context, name string, args HubV2Args, opts ...ResourceOption) (*HubV2, error)public HubV2(string name, HubV2Args args, CustomResourceOptions? opts = null)type: harness:chaos:HubV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HubV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HubV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HubV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HubV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HubV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var hubV2Resource = new Harness.Chaos.HubV2("hubV2Resource", new()
{
Identity = "string",
ConnectorRef = "string",
Description = "string",
Name = "string",
OrgId = "string",
ProjectId = "string",
RepoBranch = "string",
RepoName = "string",
Tags = new[]
{
"string",
},
});
example, err := chaos.NewHubV2(ctx, "hubV2Resource", &chaos.HubV2Args{
Identity: pulumi.String("string"),
ConnectorRef: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
RepoBranch: pulumi.String("string"),
RepoName: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var hubV2Resource = new HubV2("hubV2Resource", HubV2Args.builder()
.identity("string")
.connectorRef("string")
.description("string")
.name("string")
.orgId("string")
.projectId("string")
.repoBranch("string")
.repoName("string")
.tags("string")
.build());
hub_v2_resource = harness.chaos.HubV2("hubV2Resource",
identity="string",
connector_ref="string",
description="string",
name="string",
org_id="string",
project_id="string",
repo_branch="string",
repo_name="string",
tags=["string"])
const hubV2Resource = new harness.chaos.HubV2("hubV2Resource", {
identity: "string",
connectorRef: "string",
description: "string",
name: "string",
orgId: "string",
projectId: "string",
repoBranch: "string",
repoName: "string",
tags: ["string"],
});
type: harness:chaos:HubV2
properties:
connectorRef: string
description: string
identity: string
name: string
orgId: string
projectId: string
repoBranch: string
repoName: string
tags:
- string
HubV2 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The HubV2 resource accepts the following input properties:
- Identity string
- Unique identifier for the chaos hub.
- Connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- Description string
- Description of the chaos hub.
- Name string
- Name of the chaos hub.
- Org
Id string - The ID of the organization.
- Project
Id string - The ID of the project.
- Repo
Branch string - Git repository branch.
- Repo
Name string - Name of the Git repository (required for account-level connectors).
- List<string>
- Tags to associate with the chaos hub.
- Identity string
- Unique identifier for the chaos hub.
- Connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- Description string
- Description of the chaos hub.
- Name string
- Name of the chaos hub.
- Org
Id string - The ID of the organization.
- Project
Id string - The ID of the project.
- Repo
Branch string - Git repository branch.
- Repo
Name string - Name of the Git repository (required for account-level connectors).
- []string
- Tags to associate with the chaos hub.
- identity String
- Unique identifier for the chaos hub.
- connector
Ref String - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- description String
- Description of the chaos hub.
- name String
- Name of the chaos hub.
- org
Id String - The ID of the organization.
- project
Id String - The ID of the project.
- repo
Branch String - Git repository branch.
- repo
Name String - Name of the Git repository (required for account-level connectors).
- List<String>
- Tags to associate with the chaos hub.
- identity string
- Unique identifier for the chaos hub.
- connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- description string
- Description of the chaos hub.
- name string
- Name of the chaos hub.
- org
Id string - The ID of the organization.
- project
Id string - The ID of the project.
- repo
Branch string - Git repository branch.
- repo
Name string - Name of the Git repository (required for account-level connectors).
- string[]
- Tags to associate with the chaos hub.
- identity str
- Unique identifier for the chaos hub.
- connector_
ref str - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- description str
- Description of the chaos hub.
- name str
- Name of the chaos hub.
- org_
id str - The ID of the organization.
- project_
id str - The ID of the project.
- repo_
branch str - Git repository branch.
- repo_
name str - Name of the Git repository (required for account-level connectors).
- Sequence[str]
- Tags to associate with the chaos hub.
- identity String
- Unique identifier for the chaos hub.
- connector
Ref String - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- description String
- Description of the chaos hub.
- name String
- Name of the chaos hub.
- org
Id String - The ID of the organization.
- project
Id String - The ID of the project.
- repo
Branch String - Git repository branch.
- repo
Name String - Name of the Git repository (required for account-level connectors).
- List<String>
- Tags to associate with the chaos hub.
Outputs
All input properties are implicitly available as output properties. Additionally, the HubV2 resource produces the following output properties:
- Account
Id string - Account ID.
- Action
Template intCount - Number of action templates in the hub.
- Connector
Id string - Connector ID (deprecated, use connector_ref).
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the chaos hub.
- Experiment
Template intCount - Number of experiment templates in the hub.
- Fault
Template intCount - Number of fault templates in the hub.
- Hub
Id string - Internal hub ID returned by the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Whether this is the default chaos hub.
- Is
Removed bool - Whether the chaos hub has been removed.
- Last
Synced intAt - Timestamp of the last sync (Unix epoch).
- Probe
Template intCount - Number of probe templates in the hub.
- Repo
Url string - Git repository URL.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the chaos hub.
- Account
Id string - Account ID.
- Action
Template intCount - Number of action templates in the hub.
- Connector
Id string - Connector ID (deprecated, use connector_ref).
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the chaos hub.
- Experiment
Template intCount - Number of experiment templates in the hub.
- Fault
Template intCount - Number of fault templates in the hub.
- Hub
Id string - Internal hub ID returned by the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Default bool - Whether this is the default chaos hub.
- Is
Removed bool - Whether the chaos hub has been removed.
- Last
Synced intAt - Timestamp of the last sync (Unix epoch).
- Probe
Template intCount - Number of probe templates in the hub.
- Repo
Url string - Git repository URL.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the chaos hub.
- account
Id String - Account ID.
- action
Template IntegerCount - Number of action templates in the hub.
- connector
Id String - Connector ID (deprecated, use connector_ref).
- created
At Integer - Creation timestamp (Unix epoch).
- created
By String - User who created the chaos hub.
- experiment
Template IntegerCount - Number of experiment templates in the hub.
- fault
Template IntegerCount - Number of fault templates in the hub.
- hub
Id String - Internal hub ID returned by the API.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default chaos hub.
- is
Removed Boolean - Whether the chaos hub has been removed.
- last
Synced IntegerAt - Timestamp of the last sync (Unix epoch).
- probe
Template IntegerCount - Number of probe templates in the hub.
- repo
Url String - Git repository URL.
- updated
At Integer - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the chaos hub.
- account
Id string - Account ID.
- action
Template numberCount - Number of action templates in the hub.
- connector
Id string - Connector ID (deprecated, use connector_ref).
- created
At number - Creation timestamp (Unix epoch).
- created
By string - User who created the chaos hub.
- experiment
Template numberCount - Number of experiment templates in the hub.
- fault
Template numberCount - Number of fault templates in the hub.
- hub
Id string - Internal hub ID returned by the API.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Default boolean - Whether this is the default chaos hub.
- is
Removed boolean - Whether the chaos hub has been removed.
- last
Synced numberAt - Timestamp of the last sync (Unix epoch).
- probe
Template numberCount - Number of probe templates in the hub.
- repo
Url string - Git repository URL.
- updated
At number - Last update timestamp (Unix epoch).
- updated
By string - User who last updated the chaos hub.
- account_
id str - Account ID.
- action_
template_ intcount - Number of action templates in the hub.
- connector_
id str - Connector ID (deprecated, use connector_ref).
- created_
at int - Creation timestamp (Unix epoch).
- created_
by str - User who created the chaos hub.
- experiment_
template_ intcount - Number of experiment templates in the hub.
- fault_
template_ intcount - Number of fault templates in the hub.
- hub_
id str - Internal hub ID returned by the API.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
default bool - Whether this is the default chaos hub.
- is_
removed bool - Whether the chaos hub has been removed.
- last_
synced_ intat - Timestamp of the last sync (Unix epoch).
- probe_
template_ intcount - Number of probe templates in the hub.
- repo_
url str - Git repository URL.
- updated_
at int - Last update timestamp (Unix epoch).
- updated_
by str - User who last updated the chaos hub.
- account
Id String - Account ID.
- action
Template NumberCount - Number of action templates in the hub.
- connector
Id String - Connector ID (deprecated, use connector_ref).
- created
At Number - Creation timestamp (Unix epoch).
- created
By String - User who created the chaos hub.
- experiment
Template NumberCount - Number of experiment templates in the hub.
- fault
Template NumberCount - Number of fault templates in the hub.
- hub
Id String - Internal hub ID returned by the API.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Default Boolean - Whether this is the default chaos hub.
- is
Removed Boolean - Whether the chaos hub has been removed.
- last
Synced NumberAt - Timestamp of the last sync (Unix epoch).
- probe
Template NumberCount - Number of probe templates in the hub.
- repo
Url String - Git repository URL.
- updated
At Number - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the chaos hub.
Look up Existing HubV2 Resource
Get an existing HubV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HubV2State, opts?: CustomResourceOptions): HubV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
action_template_count: Optional[int] = None,
connector_id: Optional[str] = None,
connector_ref: Optional[str] = None,
created_at: Optional[int] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
experiment_template_count: Optional[int] = None,
fault_template_count: Optional[int] = None,
hub_id: Optional[str] = None,
identity: Optional[str] = None,
is_default: Optional[bool] = None,
is_removed: Optional[bool] = None,
last_synced_at: Optional[int] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
probe_template_count: Optional[int] = None,
project_id: Optional[str] = None,
repo_branch: Optional[str] = None,
repo_name: Optional[str] = None,
repo_url: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
updated_at: Optional[int] = None,
updated_by: Optional[str] = None) -> HubV2func GetHubV2(ctx *Context, name string, id IDInput, state *HubV2State, opts ...ResourceOption) (*HubV2, error)public static HubV2 Get(string name, Input<string> id, HubV2State? state, CustomResourceOptions? opts = null)public static HubV2 get(String name, Output<String> id, HubV2State state, CustomResourceOptions options)resources: _: type: harness:chaos:HubV2 get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account ID.
- Action
Template intCount - Number of action templates in the hub.
- Connector
Id string - Connector ID (deprecated, use connector_ref).
- Connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the chaos hub.
- Description string
- Description of the chaos hub.
- Experiment
Template intCount - Number of experiment templates in the hub.
- Fault
Template intCount - Number of fault templates in the hub.
- Hub
Id string - Internal hub ID returned by the API.
- Identity string
- Unique identifier for the chaos hub.
- Is
Default bool - Whether this is the default chaos hub.
- Is
Removed bool - Whether the chaos hub has been removed.
- Last
Synced intAt - Timestamp of the last sync (Unix epoch).
- Name string
- Name of the chaos hub.
- Org
Id string - The ID of the organization.
- Probe
Template intCount - Number of probe templates in the hub.
- Project
Id string - The ID of the project.
- Repo
Branch string - Git repository branch.
- Repo
Name string - Name of the Git repository (required for account-level connectors).
- Repo
Url string - Git repository URL.
- List<string>
- Tags to associate with the chaos hub.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the chaos hub.
- Account
Id string - Account ID.
- Action
Template intCount - Number of action templates in the hub.
- Connector
Id string - Connector ID (deprecated, use connector_ref).
- Connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- Created
At int - Creation timestamp (Unix epoch).
- Created
By string - User who created the chaos hub.
- Description string
- Description of the chaos hub.
- Experiment
Template intCount - Number of experiment templates in the hub.
- Fault
Template intCount - Number of fault templates in the hub.
- Hub
Id string - Internal hub ID returned by the API.
- Identity string
- Unique identifier for the chaos hub.
- Is
Default bool - Whether this is the default chaos hub.
- Is
Removed bool - Whether the chaos hub has been removed.
- Last
Synced intAt - Timestamp of the last sync (Unix epoch).
- Name string
- Name of the chaos hub.
- Org
Id string - The ID of the organization.
- Probe
Template intCount - Number of probe templates in the hub.
- Project
Id string - The ID of the project.
- Repo
Branch string - Git repository branch.
- Repo
Name string - Name of the Git repository (required for account-level connectors).
- Repo
Url string - Git repository URL.
- []string
- Tags to associate with the chaos hub.
- Updated
At int - Last update timestamp (Unix epoch).
- Updated
By string - User who last updated the chaos hub.
- account
Id String - Account ID.
- action
Template IntegerCount - Number of action templates in the hub.
- connector
Id String - Connector ID (deprecated, use connector_ref).
- connector
Ref String - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- created
At Integer - Creation timestamp (Unix epoch).
- created
By String - User who created the chaos hub.
- description String
- Description of the chaos hub.
- experiment
Template IntegerCount - Number of experiment templates in the hub.
- fault
Template IntegerCount - Number of fault templates in the hub.
- hub
Id String - Internal hub ID returned by the API.
- identity String
- Unique identifier for the chaos hub.
- is
Default Boolean - Whether this is the default chaos hub.
- is
Removed Boolean - Whether the chaos hub has been removed.
- last
Synced IntegerAt - Timestamp of the last sync (Unix epoch).
- name String
- Name of the chaos hub.
- org
Id String - The ID of the organization.
- probe
Template IntegerCount - Number of probe templates in the hub.
- project
Id String - The ID of the project.
- repo
Branch String - Git repository branch.
- repo
Name String - Name of the Git repository (required for account-level connectors).
- repo
Url String - Git repository URL.
- List<String>
- Tags to associate with the chaos hub.
- updated
At Integer - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the chaos hub.
- account
Id string - Account ID.
- action
Template numberCount - Number of action templates in the hub.
- connector
Id string - Connector ID (deprecated, use connector_ref).
- connector
Ref string - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- created
At number - Creation timestamp (Unix epoch).
- created
By string - User who created the chaos hub.
- description string
- Description of the chaos hub.
- experiment
Template numberCount - Number of experiment templates in the hub.
- fault
Template numberCount - Number of fault templates in the hub.
- hub
Id string - Internal hub ID returned by the API.
- identity string
- Unique identifier for the chaos hub.
- is
Default boolean - Whether this is the default chaos hub.
- is
Removed boolean - Whether the chaos hub has been removed.
- last
Synced numberAt - Timestamp of the last sync (Unix epoch).
- name string
- Name of the chaos hub.
- org
Id string - The ID of the organization.
- probe
Template numberCount - Number of probe templates in the hub.
- project
Id string - The ID of the project.
- repo
Branch string - Git repository branch.
- repo
Name string - Name of the Git repository (required for account-level connectors).
- repo
Url string - Git repository URL.
- string[]
- Tags to associate with the chaos hub.
- updated
At number - Last update timestamp (Unix epoch).
- updated
By string - User who last updated the chaos hub.
- account_
id str - Account ID.
- action_
template_ intcount - Number of action templates in the hub.
- connector_
id str - Connector ID (deprecated, use connector_ref).
- connector_
ref str - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- created_
at int - Creation timestamp (Unix epoch).
- created_
by str - User who created the chaos hub.
- description str
- Description of the chaos hub.
- experiment_
template_ intcount - Number of experiment templates in the hub.
- fault_
template_ intcount - Number of fault templates in the hub.
- hub_
id str - Internal hub ID returned by the API.
- identity str
- Unique identifier for the chaos hub.
- is_
default bool - Whether this is the default chaos hub.
- is_
removed bool - Whether the chaos hub has been removed.
- last_
synced_ intat - Timestamp of the last sync (Unix epoch).
- name str
- Name of the chaos hub.
- org_
id str - The ID of the organization.
- probe_
template_ intcount - Number of probe templates in the hub.
- project_
id str - The ID of the project.
- repo_
branch str - Git repository branch.
- repo_
name str - Name of the Git repository (required for account-level connectors).
- repo_
url str - Git repository URL.
- Sequence[str]
- Tags to associate with the chaos hub.
- updated_
at int - Last update timestamp (Unix epoch).
- updated_
by str - User who last updated the chaos hub.
- account
Id String - Account ID.
- action
Template NumberCount - Number of action templates in the hub.
- connector
Id String - Connector ID (deprecated, use connector_ref).
- connector
Ref String - Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
- created
At Number - Creation timestamp (Unix epoch).
- created
By String - User who created the chaos hub.
- description String
- Description of the chaos hub.
- experiment
Template NumberCount - Number of experiment templates in the hub.
- fault
Template NumberCount - Number of fault templates in the hub.
- hub
Id String - Internal hub ID returned by the API.
- identity String
- Unique identifier for the chaos hub.
- is
Default Boolean - Whether this is the default chaos hub.
- is
Removed Boolean - Whether the chaos hub has been removed.
- last
Synced NumberAt - Timestamp of the last sync (Unix epoch).
- name String
- Name of the chaos hub.
- org
Id String - The ID of the organization.
- probe
Template NumberCount - Number of probe templates in the hub.
- project
Id String - The ID of the project.
- repo
Branch String - Git repository branch.
- repo
Name String - Name of the Git repository (required for account-level connectors).
- repo
Url String - Git repository URL.
- List<String>
- Tags to associate with the chaos hub.
- updated
At Number - Last update timestamp (Unix epoch).
- updated
By String - User who last updated the chaos hub.
Import
The pulumi import command can be used, for example:
Import Account level Chaos Hub
$ pulumi import harness:chaos/hubV2:HubV2 account_level <hub_id>
Import Org level Chaos Hub
$ pulumi import harness:chaos/hubV2:HubV2 org_level <org_id>/<hub_id>
Import Project level Chaos Hub
$ pulumi import harness:chaos/hubV2:HubV2 project_level <org_id>/<project_id>/<hub_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Tuesday, Apr 21, 2026 by Pulumi
