1. Packages
  2. Packages
  3. Harness Provider
  4. API Docs
  5. chaos
  6. HubV2
Viewing docs for Harness v0.12.0
published on Tuesday, Apr 21, 2026 by Pulumi
harness logo
Viewing docs for Harness v0.12.0
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)
    public HubV2(String name, HubV2Args args)
    public HubV2(String name, HubV2Args args, CustomResourceOptions options)
    
    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.
    ConnectorRef 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.
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    RepoBranch string
    Git repository branch.
    RepoName string
    Name of the Git repository (required for account-level connectors).
    Tags List<string>
    Tags to associate with the chaos hub.
    Identity string
    Unique identifier for the chaos hub.
    ConnectorRef 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.
    OrgId string
    The ID of the organization.
    ProjectId string
    The ID of the project.
    RepoBranch string
    Git repository branch.
    RepoName string
    Name of the Git repository (required for account-level connectors).
    Tags []string
    Tags to associate with the chaos hub.
    identity String
    Unique identifier for the chaos hub.
    connectorRef 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.
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    repoBranch String
    Git repository branch.
    repoName String
    Name of the Git repository (required for account-level connectors).
    tags List<String>
    Tags to associate with the chaos hub.
    identity string
    Unique identifier for the chaos hub.
    connectorRef 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.
    orgId string
    The ID of the organization.
    projectId string
    The ID of the project.
    repoBranch string
    Git repository branch.
    repoName string
    Name of the Git repository (required for account-level connectors).
    tags 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).
    tags Sequence[str]
    Tags to associate with the chaos hub.
    identity String
    Unique identifier for the chaos hub.
    connectorRef 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.
    orgId String
    The ID of the organization.
    projectId String
    The ID of the project.
    repoBranch String
    Git repository branch.
    repoName String
    Name of the Git repository (required for account-level connectors).
    tags 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:

    AccountId string
    Account ID.
    ActionTemplateCount int
    Number of action templates in the hub.
    ConnectorId string
    Connector ID (deprecated, use connector_ref).
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the chaos hub.
    ExperimentTemplateCount int
    Number of experiment templates in the hub.
    FaultTemplateCount int
    Number of fault templates in the hub.
    HubId string
    Internal hub ID returned by the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default chaos hub.
    IsRemoved bool
    Whether the chaos hub has been removed.
    LastSyncedAt int
    Timestamp of the last sync (Unix epoch).
    ProbeTemplateCount int
    Number of probe templates in the hub.
    RepoUrl string
    Git repository URL.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the chaos hub.
    AccountId string
    Account ID.
    ActionTemplateCount int
    Number of action templates in the hub.
    ConnectorId string
    Connector ID (deprecated, use connector_ref).
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the chaos hub.
    ExperimentTemplateCount int
    Number of experiment templates in the hub.
    FaultTemplateCount int
    Number of fault templates in the hub.
    HubId string
    Internal hub ID returned by the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsDefault bool
    Whether this is the default chaos hub.
    IsRemoved bool
    Whether the chaos hub has been removed.
    LastSyncedAt int
    Timestamp of the last sync (Unix epoch).
    ProbeTemplateCount int
    Number of probe templates in the hub.
    RepoUrl string
    Git repository URL.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the chaos hub.
    accountId String
    Account ID.
    actionTemplateCount Integer
    Number of action templates in the hub.
    connectorId String
    Connector ID (deprecated, use connector_ref).
    createdAt Integer
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the chaos hub.
    experimentTemplateCount Integer
    Number of experiment templates in the hub.
    faultTemplateCount Integer
    Number of fault templates in the hub.
    hubId String
    Internal hub ID returned by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default chaos hub.
    isRemoved Boolean
    Whether the chaos hub has been removed.
    lastSyncedAt Integer
    Timestamp of the last sync (Unix epoch).
    probeTemplateCount Integer
    Number of probe templates in the hub.
    repoUrl String
    Git repository URL.
    updatedAt Integer
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the chaos hub.
    accountId string
    Account ID.
    actionTemplateCount number
    Number of action templates in the hub.
    connectorId string
    Connector ID (deprecated, use connector_ref).
    createdAt number
    Creation timestamp (Unix epoch).
    createdBy string
    User who created the chaos hub.
    experimentTemplateCount number
    Number of experiment templates in the hub.
    faultTemplateCount number
    Number of fault templates in the hub.
    hubId string
    Internal hub ID returned by the API.
    id string
    The provider-assigned unique ID for this managed resource.
    isDefault boolean
    Whether this is the default chaos hub.
    isRemoved boolean
    Whether the chaos hub has been removed.
    lastSyncedAt number
    Timestamp of the last sync (Unix epoch).
    probeTemplateCount number
    Number of probe templates in the hub.
    repoUrl string
    Git repository URL.
    updatedAt number
    Last update timestamp (Unix epoch).
    updatedBy string
    User who last updated the chaos hub.
    account_id str
    Account ID.
    action_template_count int
    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_count int
    Number of experiment templates in the hub.
    fault_template_count int
    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_at int
    Timestamp of the last sync (Unix epoch).
    probe_template_count int
    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.
    accountId String
    Account ID.
    actionTemplateCount Number
    Number of action templates in the hub.
    connectorId String
    Connector ID (deprecated, use connector_ref).
    createdAt Number
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the chaos hub.
    experimentTemplateCount Number
    Number of experiment templates in the hub.
    faultTemplateCount Number
    Number of fault templates in the hub.
    hubId String
    Internal hub ID returned by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    isDefault Boolean
    Whether this is the default chaos hub.
    isRemoved Boolean
    Whether the chaos hub has been removed.
    lastSyncedAt Number
    Timestamp of the last sync (Unix epoch).
    probeTemplateCount Number
    Number of probe templates in the hub.
    repoUrl String
    Git repository URL.
    updatedAt Number
    Last update timestamp (Unix epoch).
    updatedBy 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) -> HubV2
    func 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.
    The following state arguments are supported:
    AccountId string
    Account ID.
    ActionTemplateCount int
    Number of action templates in the hub.
    ConnectorId string
    Connector ID (deprecated, use connector_ref).
    ConnectorRef string
    Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the chaos hub.
    Description string
    Description of the chaos hub.
    ExperimentTemplateCount int
    Number of experiment templates in the hub.
    FaultTemplateCount int
    Number of fault templates in the hub.
    HubId string
    Internal hub ID returned by the API.
    Identity string
    Unique identifier for the chaos hub.
    IsDefault bool
    Whether this is the default chaos hub.
    IsRemoved bool
    Whether the chaos hub has been removed.
    LastSyncedAt int
    Timestamp of the last sync (Unix epoch).
    Name string
    Name of the chaos hub.
    OrgId string
    The ID of the organization.
    ProbeTemplateCount int
    Number of probe templates in the hub.
    ProjectId string
    The ID of the project.
    RepoBranch string
    Git repository branch.
    RepoName string
    Name of the Git repository (required for account-level connectors).
    RepoUrl string
    Git repository URL.
    Tags List<string>
    Tags to associate with the chaos hub.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the chaos hub.
    AccountId string
    Account ID.
    ActionTemplateCount int
    Number of action templates in the hub.
    ConnectorId string
    Connector ID (deprecated, use connector_ref).
    ConnectorRef string
    Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
    CreatedAt int
    Creation timestamp (Unix epoch).
    CreatedBy string
    User who created the chaos hub.
    Description string
    Description of the chaos hub.
    ExperimentTemplateCount int
    Number of experiment templates in the hub.
    FaultTemplateCount int
    Number of fault templates in the hub.
    HubId string
    Internal hub ID returned by the API.
    Identity string
    Unique identifier for the chaos hub.
    IsDefault bool
    Whether this is the default chaos hub.
    IsRemoved bool
    Whether the chaos hub has been removed.
    LastSyncedAt int
    Timestamp of the last sync (Unix epoch).
    Name string
    Name of the chaos hub.
    OrgId string
    The ID of the organization.
    ProbeTemplateCount int
    Number of probe templates in the hub.
    ProjectId string
    The ID of the project.
    RepoBranch string
    Git repository branch.
    RepoName string
    Name of the Git repository (required for account-level connectors).
    RepoUrl string
    Git repository URL.
    Tags []string
    Tags to associate with the chaos hub.
    UpdatedAt int
    Last update timestamp (Unix epoch).
    UpdatedBy string
    User who last updated the chaos hub.
    accountId String
    Account ID.
    actionTemplateCount Integer
    Number of action templates in the hub.
    connectorId String
    Connector ID (deprecated, use connector_ref).
    connectorRef String
    Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
    createdAt Integer
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the chaos hub.
    description String
    Description of the chaos hub.
    experimentTemplateCount Integer
    Number of experiment templates in the hub.
    faultTemplateCount Integer
    Number of fault templates in the hub.
    hubId String
    Internal hub ID returned by the API.
    identity String
    Unique identifier for the chaos hub.
    isDefault Boolean
    Whether this is the default chaos hub.
    isRemoved Boolean
    Whether the chaos hub has been removed.
    lastSyncedAt Integer
    Timestamp of the last sync (Unix epoch).
    name String
    Name of the chaos hub.
    orgId String
    The ID of the organization.
    probeTemplateCount Integer
    Number of probe templates in the hub.
    projectId String
    The ID of the project.
    repoBranch String
    Git repository branch.
    repoName String
    Name of the Git repository (required for account-level connectors).
    repoUrl String
    Git repository URL.
    tags List<String>
    Tags to associate with the chaos hub.
    updatedAt Integer
    Last update timestamp (Unix epoch).
    updatedBy String
    User who last updated the chaos hub.
    accountId string
    Account ID.
    actionTemplateCount number
    Number of action templates in the hub.
    connectorId string
    Connector ID (deprecated, use connector_ref).
    connectorRef string
    Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
    createdAt number
    Creation timestamp (Unix epoch).
    createdBy string
    User who created the chaos hub.
    description string
    Description of the chaos hub.
    experimentTemplateCount number
    Number of experiment templates in the hub.
    faultTemplateCount number
    Number of fault templates in the hub.
    hubId string
    Internal hub ID returned by the API.
    identity string
    Unique identifier for the chaos hub.
    isDefault boolean
    Whether this is the default chaos hub.
    isRemoved boolean
    Whether the chaos hub has been removed.
    lastSyncedAt number
    Timestamp of the last sync (Unix epoch).
    name string
    Name of the chaos hub.
    orgId string
    The ID of the organization.
    probeTemplateCount number
    Number of probe templates in the hub.
    projectId string
    The ID of the project.
    repoBranch string
    Git repository branch.
    repoName string
    Name of the Git repository (required for account-level connectors).
    repoUrl string
    Git repository URL.
    tags string[]
    Tags to associate with the chaos hub.
    updatedAt number
    Last update timestamp (Unix epoch).
    updatedBy string
    User who last updated the chaos hub.
    account_id str
    Account ID.
    action_template_count int
    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_count int
    Number of experiment templates in the hub.
    fault_template_count int
    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_at int
    Timestamp of the last sync (Unix epoch).
    name str
    Name of the chaos hub.
    org_id str
    The ID of the organization.
    probe_template_count int
    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.
    tags 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.
    accountId String
    Account ID.
    actionTemplateCount Number
    Number of action templates in the hub.
    connectorId String
    Connector ID (deprecated, use connector_ref).
    connectorRef String
    Reference to the Git connector (format: scope.connectorId, e.g., org.myconnector or account.myconnector).
    createdAt Number
    Creation timestamp (Unix epoch).
    createdBy String
    User who created the chaos hub.
    description String
    Description of the chaos hub.
    experimentTemplateCount Number
    Number of experiment templates in the hub.
    faultTemplateCount Number
    Number of fault templates in the hub.
    hubId String
    Internal hub ID returned by the API.
    identity String
    Unique identifier for the chaos hub.
    isDefault Boolean
    Whether this is the default chaos hub.
    isRemoved Boolean
    Whether the chaos hub has been removed.
    lastSyncedAt Number
    Timestamp of the last sync (Unix epoch).
    name String
    Name of the chaos hub.
    orgId String
    The ID of the organization.
    probeTemplateCount Number
    Number of probe templates in the hub.
    projectId String
    The ID of the project.
    repoBranch String
    Git repository branch.
    repoName String
    Name of the Git repository (required for account-level connectors).
    repoUrl String
    Git repository URL.
    tags List<String>
    Tags to associate with the chaos hub.
    updatedAt Number
    Last update timestamp (Unix epoch).
    updatedBy 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 harness Terraform Provider.
    harness logo
    Viewing docs for Harness v0.12.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.