harness.platform.GitxWebhook
Explore with Pulumi AI
Resource for creating a Harness pipeline.
Create GitxWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GitxWebhook(name: string, args: GitxWebhookArgs, opts?: CustomResourceOptions);
@overload
def GitxWebhook(resource_name: str,
args: GitxWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GitxWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
connector_ref: Optional[str] = None,
identifier: Optional[str] = None,
repo_name: Optional[str] = None,
description: Optional[str] = None,
folder_paths: Optional[Sequence[str]] = None,
is_enabled: Optional[bool] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)
func NewGitxWebhook(ctx *Context, name string, args GitxWebhookArgs, opts ...ResourceOption) (*GitxWebhook, error)
public GitxWebhook(string name, GitxWebhookArgs args, CustomResourceOptions? opts = null)
public GitxWebhook(String name, GitxWebhookArgs args)
public GitxWebhook(String name, GitxWebhookArgs args, CustomResourceOptions options)
type: harness:platform:GitxWebhook
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 GitxWebhookArgs
- 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 GitxWebhookArgs
- 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 GitxWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GitxWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GitxWebhookArgs
- 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 gitxWebhookResource = new Harness.Platform.GitxWebhook("gitxWebhookResource", new()
{
ConnectorRef = "string",
Identifier = "string",
RepoName = "string",
Description = "string",
FolderPaths = new[]
{
"string",
},
IsEnabled = false,
Name = "string",
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
});
example, err := platform.NewGitxWebhook(ctx, "gitxWebhookResource", &platform.GitxWebhookArgs{
ConnectorRef: pulumi.String("string"),
Identifier: pulumi.String("string"),
RepoName: pulumi.String("string"),
Description: pulumi.String("string"),
FolderPaths: pulumi.StringArray{
pulumi.String("string"),
},
IsEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var gitxWebhookResource = new GitxWebhook("gitxWebhookResource", GitxWebhookArgs.builder()
.connectorRef("string")
.identifier("string")
.repoName("string")
.description("string")
.folderPaths("string")
.isEnabled(false)
.name("string")
.orgId("string")
.projectId("string")
.tags("string")
.build());
gitx_webhook_resource = harness.platform.GitxWebhook("gitxWebhookResource",
connector_ref="string",
identifier="string",
repo_name="string",
description="string",
folder_paths=["string"],
is_enabled=False,
name="string",
org_id="string",
project_id="string",
tags=["string"])
const gitxWebhookResource = new harness.platform.GitxWebhook("gitxWebhookResource", {
connectorRef: "string",
identifier: "string",
repoName: "string",
description: "string",
folderPaths: ["string"],
isEnabled: false,
name: "string",
orgId: "string",
projectId: "string",
tags: ["string"],
});
type: harness:platform:GitxWebhook
properties:
connectorRef: string
description: string
folderPaths:
- string
identifier: string
isEnabled: false
name: string
orgId: string
projectId: string
repoName: string
tags:
- string
GitxWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The GitxWebhook resource accepts the following input properties:
- Connector
Ref string - ConnectorRef to be used to create Gitx webhook.
- Identifier string
- Unique identifier of the resource.
- Repo
Name string - Repo Identifier for Gitx webhook.
- Description string
- Description of the resource.
- Folder
Paths List<string> - Folder Paths
- Is
Enabled bool - Flag to enable the webhook
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Connector
Ref string - ConnectorRef to be used to create Gitx webhook.
- Identifier string
- Unique identifier of the resource.
- Repo
Name string - Repo Identifier for Gitx webhook.
- Description string
- Description of the resource.
- Folder
Paths []string - Folder Paths
- Is
Enabled bool - Flag to enable the webhook
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- connector
Ref String - ConnectorRef to be used to create Gitx webhook.
- identifier String
- Unique identifier of the resource.
- repo
Name String - Repo Identifier for Gitx webhook.
- description String
- Description of the resource.
- folder
Paths List<String> - Folder Paths
- is
Enabled Boolean - Flag to enable the webhook
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- connector
Ref string - ConnectorRef to be used to create Gitx webhook.
- identifier string
- Unique identifier of the resource.
- repo
Name string - Repo Identifier for Gitx webhook.
- description string
- Description of the resource.
- folder
Paths string[] - Folder Paths
- is
Enabled boolean - Flag to enable the webhook
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- connector_
ref str - ConnectorRef to be used to create Gitx webhook.
- identifier str
- Unique identifier of the resource.
- repo_
name str - Repo Identifier for Gitx webhook.
- description str
- Description of the resource.
- folder_
paths Sequence[str] - Folder Paths
- is_
enabled bool - Flag to enable the webhook
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- connector
Ref String - ConnectorRef to be used to create Gitx webhook.
- identifier String
- Unique identifier of the resource.
- repo
Name String - Repo Identifier for Gitx webhook.
- description String
- Description of the resource.
- folder
Paths List<String> - Folder Paths
- is
Enabled Boolean - Flag to enable the webhook
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the GitxWebhook resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing GitxWebhook Resource
Get an existing GitxWebhook 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?: GitxWebhookState, opts?: CustomResourceOptions): GitxWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
connector_ref: Optional[str] = None,
description: Optional[str] = None,
folder_paths: Optional[Sequence[str]] = None,
identifier: Optional[str] = None,
is_enabled: 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) -> GitxWebhook
func GetGitxWebhook(ctx *Context, name string, id IDInput, state *GitxWebhookState, opts ...ResourceOption) (*GitxWebhook, error)
public static GitxWebhook Get(string name, Input<string> id, GitxWebhookState? state, CustomResourceOptions? opts = null)
public static GitxWebhook get(String name, Output<String> id, GitxWebhookState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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
Ref string - ConnectorRef to be used to create Gitx webhook.
- Description string
- Description of the resource.
- Folder
Paths List<string> - Folder Paths
- Identifier string
- Unique identifier of the resource.
- Is
Enabled bool - Flag to enable the webhook
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Repo
Name string - Repo Identifier for Gitx webhook.
- List<string>
- Tags to associate with the resource.
- Connector
Ref string - ConnectorRef to be used to create Gitx webhook.
- Description string
- Description of the resource.
- Folder
Paths []string - Folder Paths
- Identifier string
- Unique identifier of the resource.
- Is
Enabled bool - Flag to enable the webhook
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Repo
Name string - Repo Identifier for Gitx webhook.
- []string
- Tags to associate with the resource.
- connector
Ref String - ConnectorRef to be used to create Gitx webhook.
- description String
- Description of the resource.
- folder
Paths List<String> - Folder Paths
- identifier String
- Unique identifier of the resource.
- is
Enabled Boolean - Flag to enable the webhook
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- repo
Name String - Repo Identifier for Gitx webhook.
- List<String>
- Tags to associate with the resource.
- connector
Ref string - ConnectorRef to be used to create Gitx webhook.
- description string
- Description of the resource.
- folder
Paths string[] - Folder Paths
- identifier string
- Unique identifier of the resource.
- is
Enabled boolean - Flag to enable the webhook
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- repo
Name string - Repo Identifier for Gitx webhook.
- string[]
- Tags to associate with the resource.
- connector_
ref str - ConnectorRef to be used to create Gitx webhook.
- description str
- Description of the resource.
- folder_
paths Sequence[str] - Folder Paths
- identifier str
- Unique identifier of the resource.
- is_
enabled bool - Flag to enable the webhook
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- repo_
name str - Repo Identifier for Gitx webhook.
- Sequence[str]
- Tags to associate with the resource.
- connector
Ref String - ConnectorRef to be used to create Gitx webhook.
- description String
- Description of the resource.
- folder
Paths List<String> - Folder Paths
- identifier String
- Unique identifier of the resource.
- is
Enabled Boolean - Flag to enable the webhook
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- repo
Name String - Repo Identifier for Gitx webhook.
- List<String>
- Tags to associate with the resource.
Import
Import an Account level Webhook
$ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>
Import an Org level Webhook
$ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>/<org_id>/
Import a Project level Webhook
$ pulumi import harness:platform/gitxWebhook:GitxWebhook example <webhook_identifier>/<org_id>/<project_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.