harness.chaos.Hub
Resource for managing a Harness Chaos Hub
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.chaos.Hub("example", {
    orgId: "<org_id>",
    projectId: "<project_id>",
    name: "<name>",
    description: "<description>",
    connectorId: "<connector_id>",
    repoBranch: "<repo_branch>",
    repoName: "<repo_name>",
    isDefault: false,
    tags: [
        "<tag1>",
        "<tag2>",
    ],
});
import pulumi
import pulumi_harness as harness
example = harness.chaos.Hub("example",
    org_id="<org_id>",
    project_id="<project_id>",
    name="<name>",
    description="<description>",
    connector_id="<connector_id>",
    repo_branch="<repo_branch>",
    repo_name="<repo_name>",
    is_default=False,
    tags=[
        "<tag1>",
        "<tag2>",
    ])
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.NewHub(ctx, "example", &chaos.HubArgs{
			OrgId:       pulumi.String("<org_id>"),
			ProjectId:   pulumi.String("<project_id>"),
			Name:        pulumi.String("<name>"),
			Description: pulumi.String("<description>"),
			ConnectorId: pulumi.String("<connector_id>"),
			RepoBranch:  pulumi.String("<repo_branch>"),
			RepoName:    pulumi.String("<repo_name>"),
			IsDefault:   pulumi.Bool(false),
			Tags: pulumi.StringArray{
				pulumi.String("<tag1>"),
				pulumi.String("<tag2>"),
			},
		})
		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 = new Harness.Chaos.Hub("example", new()
    {
        OrgId = "<org_id>",
        ProjectId = "<project_id>",
        Name = "<name>",
        Description = "<description>",
        ConnectorId = "<connector_id>",
        RepoBranch = "<repo_branch>",
        RepoName = "<repo_name>",
        IsDefault = false,
        Tags = new[]
        {
            "<tag1>",
            "<tag2>",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.chaos.Hub;
import com.pulumi.harness.chaos.HubArgs;
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) {
        var example = new Hub("example", HubArgs.builder()
            .orgId("<org_id>")
            .projectId("<project_id>")
            .name("<name>")
            .description("<description>")
            .connectorId("<connector_id>")
            .repoBranch("<repo_branch>")
            .repoName("<repo_name>")
            .isDefault(false)
            .tags(            
                "<tag1>",
                "<tag2>")
            .build());
    }
}
resources:
  example:
    type: harness:chaos:Hub
    properties:
      orgId: <org_id>
      projectId: <project_id>
      name: <name>
      description: <description>
      connectorId: <connector_id>
      repoBranch: <repo_branch>
      repoName: <repo_name>
      isDefault: false
      tags:
        - <tag1>
        - <tag2>
Create Hub Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Hub(name: string, args: HubArgs, opts?: CustomResourceOptions);@overload
def Hub(resource_name: str,
        args: HubArgs,
        opts: Optional[ResourceOptions] = None)
@overload
def Hub(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        connector_id: Optional[str] = None,
        repo_branch: Optional[str] = None,
        connector_scope: Optional[str] = None,
        description: Optional[str] = None,
        is_default: Optional[bool] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        repo_name: Optional[str] = None,
        tags: Optional[Sequence[str]] = None)func NewHub(ctx *Context, name string, args HubArgs, opts ...ResourceOption) (*Hub, error)public Hub(string name, HubArgs args, CustomResourceOptions? opts = null)type: harness:chaos:Hub
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 HubArgs
- 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 HubArgs
- 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 HubArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HubArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HubArgs
- 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 hubResource = new Harness.Chaos.Hub("hubResource", new()
{
    ConnectorId = "string",
    RepoBranch = "string",
    ConnectorScope = "string",
    Description = "string",
    IsDefault = false,
    Name = "string",
    OrgId = "string",
    ProjectId = "string",
    RepoName = "string",
    Tags = new[]
    {
        "string",
    },
});
example, err := chaos.NewHub(ctx, "hubResource", &chaos.HubArgs{
	ConnectorId:    pulumi.String("string"),
	RepoBranch:     pulumi.String("string"),
	ConnectorScope: pulumi.String("string"),
	Description:    pulumi.String("string"),
	IsDefault:      pulumi.Bool(false),
	Name:           pulumi.String("string"),
	OrgId:          pulumi.String("string"),
	ProjectId:      pulumi.String("string"),
	RepoName:       pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var hubResource = new Hub("hubResource", HubArgs.builder()
    .connectorId("string")
    .repoBranch("string")
    .connectorScope("string")
    .description("string")
    .isDefault(false)
    .name("string")
    .orgId("string")
    .projectId("string")
    .repoName("string")
    .tags("string")
    .build());
hub_resource = harness.chaos.Hub("hubResource",
    connector_id="string",
    repo_branch="string",
    connector_scope="string",
    description="string",
    is_default=False,
    name="string",
    org_id="string",
    project_id="string",
    repo_name="string",
    tags=["string"])
const hubResource = new harness.chaos.Hub("hubResource", {
    connectorId: "string",
    repoBranch: "string",
    connectorScope: "string",
    description: "string",
    isDefault: false,
    name: "string",
    orgId: "string",
    projectId: "string",
    repoName: "string",
    tags: ["string"],
});
type: harness:chaos:Hub
properties:
    connectorId: string
    connectorScope: string
    description: string
    isDefault: false
    name: string
    orgId: string
    projectId: string
    repoBranch: string
    repoName: string
    tags:
        - string
Hub 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 Hub resource accepts the following input properties:
- ConnectorId string
- ID of the Git connector
- RepoBranch string
- Git repository branch
- ConnectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Description string
- Description of the chaos hub
- IsDefault bool
- Whether this is the default chaos hub
- Name string
- Name of the chaos hub
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- RepoName string
- Name of the Git repository (required for account-level connectors)
- List<string>
- Tags to associate with the chaos hub
- ConnectorId string
- ID of the Git connector
- RepoBranch string
- Git repository branch
- ConnectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Description string
- Description of the chaos hub
- IsDefault bool
- Whether this is the default chaos hub
- Name string
- Name of the chaos hub
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- RepoName string
- Name of the Git repository (required for account-level connectors)
- []string
- Tags to associate with the chaos hub
- connectorId String
- ID of the Git connector
- repoBranch String
- Git repository branch
- connectorScope String
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description String
- Description of the chaos hub
- isDefault Boolean
- Whether this is the default chaos hub
- name String
- Name of the chaos hub
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
- repoName String
- Name of the Git repository (required for account-level connectors)
- List<String>
- Tags to associate with the chaos hub
- connectorId string
- ID of the Git connector
- repoBranch string
- Git repository branch
- connectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description string
- Description of the chaos hub
- isDefault boolean
- Whether this is the default chaos hub
- name string
- Name of the chaos hub
- orgId string
- The organization ID of the chaos hub
- projectId string
- The project ID of the chaos hub
- repoName string
- Name of the Git repository (required for account-level connectors)
- string[]
- Tags to associate with the chaos hub
- connector_id str
- ID of the Git connector
- repo_branch str
- Git repository branch
- connector_scope str
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description str
- Description of the chaos hub
- is_default bool
- Whether this is the default chaos hub
- 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
- repo_name str
- Name of the Git repository (required for account-level connectors)
- Sequence[str]
- Tags to associate with the chaos hub
- connectorId String
- ID of the Git connector
- repoBranch String
- Git repository branch
- connectorScope String
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description String
- Description of the chaos hub
- isDefault Boolean
- Whether this is the default chaos hub
- name String
- Name of the chaos hub
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
- repoName 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 Hub resource produces the following output properties:
- CreatedAt string
- Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAvailable bool
- Whether the chaos hub is available
- LastSynced stringAt 
- Timestamp of the last sync
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- CreatedAt string
- Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- IsAvailable bool
- Whether the chaos hub is available
- LastSynced stringAt 
- Timestamp of the last sync
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- createdAt String
- Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- isAvailable Boolean
- Whether the chaos hub is available
- lastSynced StringAt 
- Timestamp of the last sync
- totalExperiments Integer
- Total number of experiments in the hub
- totalFaults Integer
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
- createdAt string
- Creation timestamp
- id string
- The provider-assigned unique ID for this managed resource.
- isAvailable boolean
- Whether the chaos hub is available
- lastSynced stringAt 
- Timestamp of the last sync
- totalExperiments number
- Total number of experiments in the hub
- totalFaults number
- Total number of faults in the hub
- updatedAt string
- Last update timestamp
- created_at str
- Creation timestamp
- id str
- The provider-assigned unique ID for this managed resource.
- is_available bool
- Whether the chaos hub is available
- last_synced_ strat 
- Timestamp of the last sync
- 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
- createdAt String
- Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- isAvailable Boolean
- Whether the chaos hub is available
- lastSynced StringAt 
- Timestamp of the last sync
- totalExperiments Number
- Total number of experiments in the hub
- totalFaults Number
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
Look up Existing Hub Resource
Get an existing Hub 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?: HubState, opts?: CustomResourceOptions): Hub@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        connector_id: Optional[str] = None,
        connector_scope: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        is_available: Optional[bool] = None,
        is_default: Optional[bool] = None,
        last_synced_at: 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,
        total_experiments: Optional[int] = None,
        total_faults: Optional[int] = None,
        updated_at: Optional[str] = None) -> Hubfunc GetHub(ctx *Context, name string, id IDInput, state *HubState, opts ...ResourceOption) (*Hub, error)public static Hub Get(string name, Input<string> id, HubState? state, CustomResourceOptions? opts = null)public static Hub get(String name, Output<String> id, HubState state, CustomResourceOptions options)resources:  _:    type: harness:chaos:Hub    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.
- ConnectorId string
- ID of the Git connector
- ConnectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- CreatedAt string
- Creation timestamp
- Description string
- Description of the chaos hub
- IsAvailable bool
- Whether the chaos hub is available
- IsDefault bool
- Whether this is the default chaos hub
- LastSynced stringAt 
- Timestamp of the last sync
- Name string
- Name of the chaos hub
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- RepoBranch string
- Git repository branch
- RepoName string
- Name of the Git repository (required for account-level connectors)
- List<string>
- Tags to associate with the chaos hub
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- ConnectorId string
- ID of the Git connector
- ConnectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- CreatedAt string
- Creation timestamp
- Description string
- Description of the chaos hub
- IsAvailable bool
- Whether the chaos hub is available
- IsDefault bool
- Whether this is the default chaos hub
- LastSynced stringAt 
- Timestamp of the last sync
- Name string
- Name of the chaos hub
- OrgId string
- The organization ID of the chaos hub
- ProjectId string
- The project ID of the chaos hub
- RepoBranch string
- Git repository branch
- RepoName string
- Name of the Git repository (required for account-level connectors)
- []string
- Tags to associate with the chaos hub
- TotalExperiments int
- Total number of experiments in the hub
- TotalFaults int
- Total number of faults in the hub
- UpdatedAt string
- Last update timestamp
- connectorId String
- ID of the Git connector
- connectorScope String
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- createdAt String
- Creation timestamp
- description String
- Description of the chaos hub
- isAvailable Boolean
- Whether the chaos hub is available
- isDefault Boolean
- Whether this is the default chaos hub
- lastSynced StringAt 
- Timestamp of the last sync
- name String
- Name of the chaos hub
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
- repoBranch String
- Git repository branch
- repoName String
- Name of the Git repository (required for account-level connectors)
- List<String>
- Tags to associate with the chaos hub
- totalExperiments Integer
- Total number of experiments in the hub
- totalFaults Integer
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
- connectorId string
- ID of the Git connector
- connectorScope string
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- createdAt string
- Creation timestamp
- description string
- Description of the chaos hub
- isAvailable boolean
- Whether the chaos hub is available
- isDefault boolean
- Whether this is the default chaos hub
- lastSynced stringAt 
- Timestamp of the last sync
- name string
- Name of the chaos hub
- orgId string
- The organization ID of the chaos hub
- projectId string
- The project ID of the chaos hub
- repoBranch string
- Git repository branch
- repoName string
- Name of the Git repository (required for account-level connectors)
- string[]
- Tags to associate with the chaos hub
- totalExperiments number
- Total number of experiments in the hub
- totalFaults number
- Total number of faults in the hub
- updatedAt string
- Last update timestamp
- connector_id str
- ID of the Git connector
- connector_scope str
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- created_at str
- Creation timestamp
- description str
- Description of the chaos hub
- 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
- org_id str
- The organization ID of the chaos hub
- project_id str
- The project ID of the chaos hub
- 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
- 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
- connectorId String
- ID of the Git connector
- connectorScope String
- Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- createdAt String
- Creation timestamp
- description String
- Description of the chaos hub
- isAvailable Boolean
- Whether the chaos hub is available
- isDefault Boolean
- Whether this is the default chaos hub
- lastSynced StringAt 
- Timestamp of the last sync
- name String
- Name of the chaos hub
- orgId String
- The organization ID of the chaos hub
- projectId String
- The project ID of the chaos hub
- repoBranch String
- Git repository branch
- repoName String
- Name of the Git repository (required for account-level connectors)
- List<String>
- Tags to associate with the chaos hub
- totalExperiments Number
- Total number of experiments in the hub
- totalFaults Number
- Total number of faults in the hub
- updatedAt String
- Last update timestamp
Import
The pulumi import command can be used, for example:
Import Project level Chaos Hub
$ pulumi import harness:chaos/hub:Hub example <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.
 
