harness.chaos.Hub
Explore with Pulumi AI
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:
- Connector
Id string - ID of the Git connector
- Repo
Branch string - Git repository branch
- Connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Description string
- Description of the chaos hub
- Is
Default bool - Whether this is the default chaos hub
- Name string
- Name of the chaos hub
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- Repo
Name string - Name of the Git repository (required for account-level connectors)
- List<string>
- Tags to associate with the chaos hub
- Connector
Id string - ID of the Git connector
- Repo
Branch string - Git repository branch
- Connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Description string
- Description of the chaos hub
- Is
Default bool - Whether this is the default chaos hub
- Name string
- Name of the chaos hub
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- Repo
Name string - Name of the Git repository (required for account-level connectors)
- []string
- Tags to associate with the chaos hub
- connector
Id String - ID of the Git connector
- repo
Branch String - Git repository branch
- connector
Scope String - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description String
- Description of the chaos hub
- is
Default Boolean - Whether this is the default chaos hub
- name String
- Name of the chaos hub
- org
Id String - The organization ID of the chaos hub
- project
Id String - The project ID of the chaos hub
- repo
Name String - Name of the Git repository (required for account-level connectors)
- List<String>
- Tags to associate with the chaos hub
- connector
Id string - ID of the Git connector
- repo
Branch string - Git repository branch
- connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description string
- Description of the chaos hub
- is
Default boolean - Whether this is the default chaos hub
- name string
- Name of the chaos hub
- org
Id string - The organization ID of the chaos hub
- project
Id string - The project ID of the chaos hub
- repo
Name 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
- connector
Id String - ID of the Git connector
- repo
Branch String - Git repository branch
- connector
Scope String - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- description String
- Description of the chaos hub
- is
Default Boolean - Whether this is the default chaos hub
- name String
- Name of the chaos hub
- org
Id String - The organization ID of the chaos hub
- project
Id String - The project ID of the chaos hub
- 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 Hub resource produces the following output properties:
- Created
At string - Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Available bool - Whether the chaos hub is available
- Last
Synced stringAt - 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 string - Last update timestamp
- Created
At string - Creation timestamp
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Available bool - Whether the chaos hub is available
- Last
Synced stringAt - 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 string - Last update timestamp
- created
At String - Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- is
Available Boolean - Whether the chaos hub is available
- last
Synced StringAt - Timestamp of the last sync
- total
Experiments Integer - Total number of experiments in the hub
- total
Faults Integer - Total number of faults in the hub
- updated
At String - Last update timestamp
- created
At string - Creation timestamp
- id string
- The provider-assigned unique ID for this managed resource.
- is
Available boolean - Whether the chaos hub is available
- last
Synced stringAt - Timestamp of the last sync
- total
Experiments number - Total number of experiments in the hub
- total
Faults number - Total number of faults in the hub
- updated
At string - Last update timestamp
- 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
- created
At String - Creation timestamp
- id String
- The provider-assigned unique ID for this managed resource.
- is
Available Boolean - Whether the chaos hub is available
- last
Synced StringAt - Timestamp of the last sync
- total
Experiments Number - Total number of experiments in the hub
- total
Faults Number - Total number of faults in the hub
- updated
At String - Last update timestamp
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) -> Hub
func 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.
- Connector
Id string - ID of the Git connector
- Connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Created
At string - Creation timestamp
- Description string
- 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 stringAt - Timestamp of the last sync
- Name string
- Name of the chaos hub
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- 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
- Total
Experiments int - Total number of experiments in the hub
- Total
Faults int - Total number of faults in the hub
- Updated
At string - Last update timestamp
- Connector
Id string - ID of the Git connector
- Connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- Created
At string - Creation timestamp
- Description string
- 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 stringAt - Timestamp of the last sync
- Name string
- Name of the chaos hub
- Org
Id string - The organization ID of the chaos hub
- Project
Id string - The project ID of the chaos hub
- 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
- Total
Experiments int - Total number of experiments in the hub
- Total
Faults int - Total number of faults in the hub
- Updated
At string - Last update timestamp
- connector
Id String - ID of the Git connector
- connector
Scope String - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- created
At String - Creation timestamp
- description String
- Description of the chaos hub
- is
Available Boolean - Whether the chaos hub is available
- is
Default Boolean - Whether this is the default chaos hub
- last
Synced StringAt - Timestamp of the last sync
- name String
- Name of the chaos hub
- org
Id String - The organization ID of the chaos hub
- project
Id String - The project ID of the chaos hub
- 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
- total
Experiments Integer - Total number of experiments in the hub
- total
Faults Integer - Total number of faults in the hub
- updated
At String - Last update timestamp
- connector
Id string - ID of the Git connector
- connector
Scope string - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- created
At string - Creation timestamp
- description string
- Description of the chaos hub
- is
Available boolean - Whether the chaos hub is available
- is
Default boolean - Whether this is the default chaos hub
- last
Synced stringAt - Timestamp of the last sync
- name string
- Name of the chaos hub
- org
Id string - The organization ID of the chaos hub
- project
Id string - The project ID of the chaos hub
- 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
- total
Experiments number - Total number of experiments in the hub
- total
Faults number - Total number of faults in the hub
- updated
At string - Last update timestamp
- 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
- connector
Id String - ID of the Git connector
- connector
Scope String - Scope of the Git connector (PROJECT, ORGANISATION, or ACCOUNT)
- created
At String - Creation timestamp
- description String
- Description of the chaos hub
- is
Available Boolean - Whether the chaos hub is available
- is
Default Boolean - Whether this is the default chaos hub
- last
Synced StringAt - Timestamp of the last sync
- name String
- Name of the chaos hub
- org
Id String - The organization ID of the chaos hub
- project
Id String - The project ID of the chaos hub
- 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
- total
Experiments Number - Total number of experiments in the hub
- total
Faults Number - Total number of faults in the hub
- updated
At String - Last update timestamp
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
harness
Terraform Provider.