1. Packages
  2. Harness Provider
  3. API Docs
  4. GitConnector
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

harness.GitConnector

Explore with Pulumi AI

harness logo
Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi

    Resource for creating a git connector

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const default = harness.getSecretManager({
        "default": true,
    });
    const example = new harness.EncryptedText("example", {
        name: "example-secret",
        value: "foo",
        secretManagerId: _default.then(_default => _default.id),
    });
    const exampleGitConnector = new harness.GitConnector("example", {
        name: "example",
        url: "https://github.com/harness/terraform-provider-harness",
        branch: "master",
        generateWebhookUrl: true,
        passwordSecretId: example.id,
        urlType: "REPO",
        username: "someuser",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    default = harness.get_secret_manager(default=True)
    example = harness.EncryptedText("example",
        name="example-secret",
        value="foo",
        secret_manager_id=default.id)
    example_git_connector = harness.GitConnector("example",
        name="example",
        url="https://github.com/harness/terraform-provider-harness",
        branch="master",
        generate_webhook_url=True,
        password_secret_id=example.id,
        url_type="REPO",
        username="someuser")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-harness/sdk/go/harness"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
    			Default: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		example, err := harness.NewEncryptedText(ctx, "example", &harness.EncryptedTextArgs{
    			Name:            pulumi.String("example-secret"),
    			Value:           pulumi.String("foo"),
    			SecretManagerId: pulumi.String(_default.Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = harness.NewGitConnector(ctx, "example", &harness.GitConnectorArgs{
    			Name:               pulumi.String("example"),
    			Url:                pulumi.String("https://github.com/harness/terraform-provider-harness"),
    			Branch:             pulumi.String("master"),
    			GenerateWebhookUrl: pulumi.Bool(true),
    			PasswordSecretId:   example.ID(),
    			UrlType:            pulumi.String("REPO"),
    			Username:           pulumi.String("someuser"),
    		})
    		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 @default = Harness.GetSecretManager.Invoke(new()
        {
            Default = true,
        });
    
        var example = new Harness.EncryptedText("example", new()
        {
            Name = "example-secret",
            Value = "foo",
            SecretManagerId = @default.Apply(@default => @default.Apply(getSecretManagerResult => getSecretManagerResult.Id)),
        });
    
        var exampleGitConnector = new Harness.GitConnector("example", new()
        {
            Name = "example",
            Url = "https://github.com/harness/terraform-provider-harness",
            Branch = "master",
            GenerateWebhookUrl = true,
            PasswordSecretId = example.Id,
            UrlType = "REPO",
            Username = "someuser",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.HarnessFunctions;
    import com.pulumi.harness.inputs.GetSecretManagerArgs;
    import com.pulumi.harness.EncryptedText;
    import com.pulumi.harness.EncryptedTextArgs;
    import com.pulumi.harness.GitConnector;
    import com.pulumi.harness.GitConnectorArgs;
    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) {
            final var default = HarnessFunctions.getSecretManager(GetSecretManagerArgs.builder()
                .default_(true)
                .build());
    
            var example = new EncryptedText("example", EncryptedTextArgs.builder()
                .name("example-secret")
                .value("foo")
                .secretManagerId(default_.id())
                .build());
    
            var exampleGitConnector = new GitConnector("exampleGitConnector", GitConnectorArgs.builder()
                .name("example")
                .url("https://github.com/harness/terraform-provider-harness")
                .branch("master")
                .generateWebhookUrl(true)
                .passwordSecretId(example.id())
                .urlType("REPO")
                .username("someuser")
                .build());
    
        }
    }
    
    resources:
      example:
        type: harness:EncryptedText
        properties:
          name: example-secret
          value: foo
          secretManagerId: ${default.id}
      exampleGitConnector:
        type: harness:GitConnector
        name: example
        properties:
          name: example
          url: https://github.com/harness/terraform-provider-harness
          branch: master
          generateWebhookUrl: true
          passwordSecretId: ${example.id}
          urlType: REPO
          username: someuser
    variables:
      default:
        fn::invoke:
          Function: harness:getSecretManager
          Arguments:
            default: true
    

    Create GitConnector Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GitConnector(name: string, args: GitConnectorArgs, opts?: CustomResourceOptions);
    @overload
    def GitConnector(resource_name: str,
                     args: GitConnectorArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def GitConnector(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     url: Optional[str] = None,
                     url_type: Optional[str] = None,
                     branch: Optional[str] = None,
                     commit_details: Optional[GitConnectorCommitDetailsArgs] = None,
                     delegate_selectors: Optional[Sequence[str]] = None,
                     generate_webhook_url: Optional[bool] = None,
                     name: Optional[str] = None,
                     password_secret_id: Optional[str] = None,
                     ssh_setting_id: Optional[str] = None,
                     usage_scopes: Optional[Sequence[GitConnectorUsageScopeArgs]] = None,
                     username: Optional[str] = None)
    func NewGitConnector(ctx *Context, name string, args GitConnectorArgs, opts ...ResourceOption) (*GitConnector, error)
    public GitConnector(string name, GitConnectorArgs args, CustomResourceOptions? opts = null)
    public GitConnector(String name, GitConnectorArgs args)
    public GitConnector(String name, GitConnectorArgs args, CustomResourceOptions options)
    
    type: harness:GitConnector
    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 GitConnectorArgs
    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 GitConnectorArgs
    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 GitConnectorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GitConnectorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GitConnectorArgs
    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 gitConnectorResource = new Harness.GitConnector("gitConnectorResource", new()
    {
        Url = "string",
        UrlType = "string",
        Branch = "string",
        CommitDetails = new Harness.Inputs.GitConnectorCommitDetailsArgs
        {
            AuthorEmailId = "string",
            AuthorName = "string",
            Message = "string",
        },
        DelegateSelectors = new[]
        {
            "string",
        },
        GenerateWebhookUrl = false,
        Name = "string",
        PasswordSecretId = "string",
        SshSettingId = "string",
        UsageScopes = new[]
        {
            new Harness.Inputs.GitConnectorUsageScopeArgs
            {
                ApplicationId = "string",
                EnvironmentFilterType = "string",
                EnvironmentId = "string",
            },
        },
        Username = "string",
    });
    
    example, err := harness.NewGitConnector(ctx, "gitConnectorResource", &harness.GitConnectorArgs{
    	Url:     pulumi.String("string"),
    	UrlType: pulumi.String("string"),
    	Branch:  pulumi.String("string"),
    	CommitDetails: &harness.GitConnectorCommitDetailsArgs{
    		AuthorEmailId: pulumi.String("string"),
    		AuthorName:    pulumi.String("string"),
    		Message:       pulumi.String("string"),
    	},
    	DelegateSelectors: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	GenerateWebhookUrl: pulumi.Bool(false),
    	Name:               pulumi.String("string"),
    	PasswordSecretId:   pulumi.String("string"),
    	SshSettingId:       pulumi.String("string"),
    	UsageScopes: harness.GitConnectorUsageScopeArray{
    		&harness.GitConnectorUsageScopeArgs{
    			ApplicationId:         pulumi.String("string"),
    			EnvironmentFilterType: pulumi.String("string"),
    			EnvironmentId:         pulumi.String("string"),
    		},
    	},
    	Username: pulumi.String("string"),
    })
    
    var gitConnectorResource = new GitConnector("gitConnectorResource", GitConnectorArgs.builder()
        .url("string")
        .urlType("string")
        .branch("string")
        .commitDetails(GitConnectorCommitDetailsArgs.builder()
            .authorEmailId("string")
            .authorName("string")
            .message("string")
            .build())
        .delegateSelectors("string")
        .generateWebhookUrl(false)
        .name("string")
        .passwordSecretId("string")
        .sshSettingId("string")
        .usageScopes(GitConnectorUsageScopeArgs.builder()
            .applicationId("string")
            .environmentFilterType("string")
            .environmentId("string")
            .build())
        .username("string")
        .build());
    
    git_connector_resource = harness.GitConnector("gitConnectorResource",
        url="string",
        url_type="string",
        branch="string",
        commit_details={
            "author_email_id": "string",
            "author_name": "string",
            "message": "string",
        },
        delegate_selectors=["string"],
        generate_webhook_url=False,
        name="string",
        password_secret_id="string",
        ssh_setting_id="string",
        usage_scopes=[{
            "application_id": "string",
            "environment_filter_type": "string",
            "environment_id": "string",
        }],
        username="string")
    
    const gitConnectorResource = new harness.GitConnector("gitConnectorResource", {
        url: "string",
        urlType: "string",
        branch: "string",
        commitDetails: {
            authorEmailId: "string",
            authorName: "string",
            message: "string",
        },
        delegateSelectors: ["string"],
        generateWebhookUrl: false,
        name: "string",
        passwordSecretId: "string",
        sshSettingId: "string",
        usageScopes: [{
            applicationId: "string",
            environmentFilterType: "string",
            environmentId: "string",
        }],
        username: "string",
    });
    
    type: harness:GitConnector
    properties:
        branch: string
        commitDetails:
            authorEmailId: string
            authorName: string
            message: string
        delegateSelectors:
            - string
        generateWebhookUrl: false
        name: string
        passwordSecretId: string
        sshSettingId: string
        url: string
        urlType: string
        usageScopes:
            - applicationId: string
              environmentFilterType: string
              environmentId: string
        username: string
    

    GitConnector 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 GitConnector resource accepts the following input properties:

    Url string
    The URL of the git repository or account/organization
    UrlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    Branch string
    The branch of the git connector to use
    CommitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    DelegateSelectors List<string>
    Delegate selectors to apply to this git connector.
    GenerateWebhookUrl bool
    Boolean indicating whether or not to generate a webhook url.
    Name string
    Name of the git connector.
    PasswordSecretId string
    The id of the secret for connecting to the git repository.
    SshSettingId string
    The id of the SSH secret to use
    UsageScopes List<GitConnectorUsageScope>
    This block is used for scoping the resource to a specific set of applications or environments.
    Username string
    The name of the user used to connect to the git repository
    Url string
    The URL of the git repository or account/organization
    UrlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    Branch string
    The branch of the git connector to use
    CommitDetails GitConnectorCommitDetailsArgs
    Custom details to use when making commits using this git connector
    DelegateSelectors []string
    Delegate selectors to apply to this git connector.
    GenerateWebhookUrl bool
    Boolean indicating whether or not to generate a webhook url.
    Name string
    Name of the git connector.
    PasswordSecretId string
    The id of the secret for connecting to the git repository.
    SshSettingId string
    The id of the SSH secret to use
    UsageScopes []GitConnectorUsageScopeArgs
    This block is used for scoping the resource to a specific set of applications or environments.
    Username string
    The name of the user used to connect to the git repository
    url String
    The URL of the git repository or account/organization
    urlType String
    The type of git url being used. Options are ACCOUNT, and REPO.
    branch String
    The branch of the git connector to use
    commitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    delegateSelectors List<String>
    Delegate selectors to apply to this git connector.
    generateWebhookUrl Boolean
    Boolean indicating whether or not to generate a webhook url.
    name String
    Name of the git connector.
    passwordSecretId String
    The id of the secret for connecting to the git repository.
    sshSettingId String
    The id of the SSH secret to use
    usageScopes List<GitConnectorUsageScope>
    This block is used for scoping the resource to a specific set of applications or environments.
    username String
    The name of the user used to connect to the git repository
    url string
    The URL of the git repository or account/organization
    urlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    branch string
    The branch of the git connector to use
    commitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    delegateSelectors string[]
    Delegate selectors to apply to this git connector.
    generateWebhookUrl boolean
    Boolean indicating whether or not to generate a webhook url.
    name string
    Name of the git connector.
    passwordSecretId string
    The id of the secret for connecting to the git repository.
    sshSettingId string
    The id of the SSH secret to use
    usageScopes GitConnectorUsageScope[]
    This block is used for scoping the resource to a specific set of applications or environments.
    username string
    The name of the user used to connect to the git repository
    url str
    The URL of the git repository or account/organization
    url_type str
    The type of git url being used. Options are ACCOUNT, and REPO.
    branch str
    The branch of the git connector to use
    commit_details GitConnectorCommitDetailsArgs
    Custom details to use when making commits using this git connector
    delegate_selectors Sequence[str]
    Delegate selectors to apply to this git connector.
    generate_webhook_url bool
    Boolean indicating whether or not to generate a webhook url.
    name str
    Name of the git connector.
    password_secret_id str
    The id of the secret for connecting to the git repository.
    ssh_setting_id str
    The id of the SSH secret to use
    usage_scopes Sequence[GitConnectorUsageScopeArgs]
    This block is used for scoping the resource to a specific set of applications or environments.
    username str
    The name of the user used to connect to the git repository
    url String
    The URL of the git repository or account/organization
    urlType String
    The type of git url being used. Options are ACCOUNT, and REPO.
    branch String
    The branch of the git connector to use
    commitDetails Property Map
    Custom details to use when making commits using this git connector
    delegateSelectors List<String>
    Delegate selectors to apply to this git connector.
    generateWebhookUrl Boolean
    Boolean indicating whether or not to generate a webhook url.
    name String
    Name of the git connector.
    passwordSecretId String
    The id of the secret for connecting to the git repository.
    sshSettingId String
    The id of the SSH secret to use
    usageScopes List<Property Map>
    This block is used for scoping the resource to a specific set of applications or environments.
    username String
    The name of the user used to connect to the git repository

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GitConnector resource produces the following output properties:

    CreatedAt string
    The time the git connector was created
    Id string
    The provider-assigned unique ID for this managed resource.
    WebhookUrl string
    The generated webhook url
    CreatedAt string
    The time the git connector was created
    Id string
    The provider-assigned unique ID for this managed resource.
    WebhookUrl string
    The generated webhook url
    createdAt String
    The time the git connector was created
    id String
    The provider-assigned unique ID for this managed resource.
    webhookUrl String
    The generated webhook url
    createdAt string
    The time the git connector was created
    id string
    The provider-assigned unique ID for this managed resource.
    webhookUrl string
    The generated webhook url
    created_at str
    The time the git connector was created
    id str
    The provider-assigned unique ID for this managed resource.
    webhook_url str
    The generated webhook url
    createdAt String
    The time the git connector was created
    id String
    The provider-assigned unique ID for this managed resource.
    webhookUrl String
    The generated webhook url

    Look up Existing GitConnector Resource

    Get an existing GitConnector 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?: GitConnectorState, opts?: CustomResourceOptions): GitConnector
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            branch: Optional[str] = None,
            commit_details: Optional[GitConnectorCommitDetailsArgs] = None,
            created_at: Optional[str] = None,
            delegate_selectors: Optional[Sequence[str]] = None,
            generate_webhook_url: Optional[bool] = None,
            name: Optional[str] = None,
            password_secret_id: Optional[str] = None,
            ssh_setting_id: Optional[str] = None,
            url: Optional[str] = None,
            url_type: Optional[str] = None,
            usage_scopes: Optional[Sequence[GitConnectorUsageScopeArgs]] = None,
            username: Optional[str] = None,
            webhook_url: Optional[str] = None) -> GitConnector
    func GetGitConnector(ctx *Context, name string, id IDInput, state *GitConnectorState, opts ...ResourceOption) (*GitConnector, error)
    public static GitConnector Get(string name, Input<string> id, GitConnectorState? state, CustomResourceOptions? opts = null)
    public static GitConnector get(String name, Output<String> id, GitConnectorState 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.
    The following state arguments are supported:
    Branch string
    The branch of the git connector to use
    CommitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    CreatedAt string
    The time the git connector was created
    DelegateSelectors List<string>
    Delegate selectors to apply to this git connector.
    GenerateWebhookUrl bool
    Boolean indicating whether or not to generate a webhook url.
    Name string
    Name of the git connector.
    PasswordSecretId string
    The id of the secret for connecting to the git repository.
    SshSettingId string
    The id of the SSH secret to use
    Url string
    The URL of the git repository or account/organization
    UrlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    UsageScopes List<GitConnectorUsageScope>
    This block is used for scoping the resource to a specific set of applications or environments.
    Username string
    The name of the user used to connect to the git repository
    WebhookUrl string
    The generated webhook url
    Branch string
    The branch of the git connector to use
    CommitDetails GitConnectorCommitDetailsArgs
    Custom details to use when making commits using this git connector
    CreatedAt string
    The time the git connector was created
    DelegateSelectors []string
    Delegate selectors to apply to this git connector.
    GenerateWebhookUrl bool
    Boolean indicating whether or not to generate a webhook url.
    Name string
    Name of the git connector.
    PasswordSecretId string
    The id of the secret for connecting to the git repository.
    SshSettingId string
    The id of the SSH secret to use
    Url string
    The URL of the git repository or account/organization
    UrlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    UsageScopes []GitConnectorUsageScopeArgs
    This block is used for scoping the resource to a specific set of applications or environments.
    Username string
    The name of the user used to connect to the git repository
    WebhookUrl string
    The generated webhook url
    branch String
    The branch of the git connector to use
    commitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    createdAt String
    The time the git connector was created
    delegateSelectors List<String>
    Delegate selectors to apply to this git connector.
    generateWebhookUrl Boolean
    Boolean indicating whether or not to generate a webhook url.
    name String
    Name of the git connector.
    passwordSecretId String
    The id of the secret for connecting to the git repository.
    sshSettingId String
    The id of the SSH secret to use
    url String
    The URL of the git repository or account/organization
    urlType String
    The type of git url being used. Options are ACCOUNT, and REPO.
    usageScopes List<GitConnectorUsageScope>
    This block is used for scoping the resource to a specific set of applications or environments.
    username String
    The name of the user used to connect to the git repository
    webhookUrl String
    The generated webhook url
    branch string
    The branch of the git connector to use
    commitDetails GitConnectorCommitDetails
    Custom details to use when making commits using this git connector
    createdAt string
    The time the git connector was created
    delegateSelectors string[]
    Delegate selectors to apply to this git connector.
    generateWebhookUrl boolean
    Boolean indicating whether or not to generate a webhook url.
    name string
    Name of the git connector.
    passwordSecretId string
    The id of the secret for connecting to the git repository.
    sshSettingId string
    The id of the SSH secret to use
    url string
    The URL of the git repository or account/organization
    urlType string
    The type of git url being used. Options are ACCOUNT, and REPO.
    usageScopes GitConnectorUsageScope[]
    This block is used for scoping the resource to a specific set of applications or environments.
    username string
    The name of the user used to connect to the git repository
    webhookUrl string
    The generated webhook url
    branch str
    The branch of the git connector to use
    commit_details GitConnectorCommitDetailsArgs
    Custom details to use when making commits using this git connector
    created_at str
    The time the git connector was created
    delegate_selectors Sequence[str]
    Delegate selectors to apply to this git connector.
    generate_webhook_url bool
    Boolean indicating whether or not to generate a webhook url.
    name str
    Name of the git connector.
    password_secret_id str
    The id of the secret for connecting to the git repository.
    ssh_setting_id str
    The id of the SSH secret to use
    url str
    The URL of the git repository or account/organization
    url_type str
    The type of git url being used. Options are ACCOUNT, and REPO.
    usage_scopes Sequence[GitConnectorUsageScopeArgs]
    This block is used for scoping the resource to a specific set of applications or environments.
    username str
    The name of the user used to connect to the git repository
    webhook_url str
    The generated webhook url
    branch String
    The branch of the git connector to use
    commitDetails Property Map
    Custom details to use when making commits using this git connector
    createdAt String
    The time the git connector was created
    delegateSelectors List<String>
    Delegate selectors to apply to this git connector.
    generateWebhookUrl Boolean
    Boolean indicating whether or not to generate a webhook url.
    name String
    Name of the git connector.
    passwordSecretId String
    The id of the secret for connecting to the git repository.
    sshSettingId String
    The id of the SSH secret to use
    url String
    The URL of the git repository or account/organization
    urlType String
    The type of git url being used. Options are ACCOUNT, and REPO.
    usageScopes List<Property Map>
    This block is used for scoping the resource to a specific set of applications or environments.
    username String
    The name of the user used to connect to the git repository
    webhookUrl String
    The generated webhook url

    Supporting Types

    GitConnectorCommitDetails, GitConnectorCommitDetailsArgs

    AuthorEmailId string
    The email id of the author
    AuthorName string
    The name of the author
    Message string
    Commit message
    AuthorEmailId string
    The email id of the author
    AuthorName string
    The name of the author
    Message string
    Commit message
    authorEmailId String
    The email id of the author
    authorName String
    The name of the author
    message String
    Commit message
    authorEmailId string
    The email id of the author
    authorName string
    The name of the author
    message string
    Commit message
    author_email_id str
    The email id of the author
    author_name str
    The name of the author
    message str
    Commit message
    authorEmailId String
    The email id of the author
    authorName String
    The name of the author
    message String
    Commit message

    GitConnectorUsageScope, GitConnectorUsageScopeArgs

    ApplicationId string
    Id of the application to scope to. If empty then this scope applies to all applications.
    EnvironmentFilterType string
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    EnvironmentId string
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
    ApplicationId string
    Id of the application to scope to. If empty then this scope applies to all applications.
    EnvironmentFilterType string
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    EnvironmentId string
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
    applicationId String
    Id of the application to scope to. If empty then this scope applies to all applications.
    environmentFilterType String
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    environmentId String
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
    applicationId string
    Id of the application to scope to. If empty then this scope applies to all applications.
    environmentFilterType string
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    environmentId string
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
    application_id str
    Id of the application to scope to. If empty then this scope applies to all applications.
    environment_filter_type str
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    environment_id str
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.
    applicationId String
    Id of the application to scope to. If empty then this scope applies to all applications.
    environmentFilterType String
    Type of environment filter applied. Cannot be used with environment_id. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS.
    environmentId String
    Id of the id of the specific environment to scope to. Cannot be used with environment_filter_type.

    Import

    Import using the Harness git connector id

    $ pulumi import harness:index/gitConnector:GitConnector example <connector_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
    Harness v0.4.4 published on Tuesday, Nov 12, 2024 by Pulumi