harness.GitConnector
Explore with Pulumi AI
Resource for creating a git connector
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Lbrlabs.PulumiPackage.Harness;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var @default = Harness.GetSecretManager.Invoke(new()
{
Default = true,
});
var exampleEncryptedText = new Harness.EncryptedText("exampleEncryptedText", new()
{
Value = "foo",
SecretManagerId = @default.Apply(@default => @default.Apply(getSecretManagerResult => getSecretManagerResult.Id)),
});
var exampleGitConnector = new Harness.GitConnector("exampleGitConnector", new()
{
Url = "https://github.com/harness/terraform-provider-harness",
Branch = "master",
GenerateWebhookUrl = true,
PasswordSecretId = exampleEncryptedText.Id,
UrlType = "REPO",
Username = "someuser",
});
});
package main
import (
"github.com/lbrlabs/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
}
exampleEncryptedText, err := harness.NewEncryptedText(ctx, "exampleEncryptedText", &harness.EncryptedTextArgs{
Value: pulumi.String("foo"),
SecretManagerId: *pulumi.String(_default.Id),
})
if err != nil {
return err
}
_, err = harness.NewGitConnector(ctx, "exampleGitConnector", &harness.GitConnectorArgs{
Url: pulumi.String("https://github.com/harness/terraform-provider-harness"),
Branch: pulumi.String("master"),
GenerateWebhookUrl: pulumi.Bool(true),
PasswordSecretId: exampleEncryptedText.ID(),
UrlType: pulumi.String("REPO"),
Username: pulumi.String("someuser"),
})
if err != nil {
return err
}
return nil
})
}
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 exampleEncryptedText = new EncryptedText("exampleEncryptedText", EncryptedTextArgs.builder()
.value("foo")
.secretManagerId(default_.id())
.build());
var exampleGitConnector = new GitConnector("exampleGitConnector", GitConnectorArgs.builder()
.url("https://github.com/harness/terraform-provider-harness")
.branch("master")
.generateWebhookUrl(true)
.passwordSecretId(exampleEncryptedText.id())
.urlType("REPO")
.username("someuser")
.build());
}
}
import pulumi
import lbrlabs_pulumi_harness as harness
import pulumi_harness as harness
default = harness.get_secret_manager(default=True)
example_encrypted_text = harness.EncryptedText("exampleEncryptedText",
value="foo",
secret_manager_id=default.id)
example_git_connector = harness.GitConnector("exampleGitConnector",
url="https://github.com/harness/terraform-provider-harness",
branch="master",
generate_webhook_url=True,
password_secret_id=example_encrypted_text.id,
url_type="REPO",
username="someuser")
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@lbrlabs/pulumi-harness";
import * as harness from "@pulumi/harness";
const default = harness.getSecretManager({
"default": true,
});
const exampleEncryptedText = new harness.EncryptedText("exampleEncryptedText", {
value: "foo",
secretManagerId: _default.then(_default => _default.id),
});
const exampleGitConnector = new harness.GitConnector("exampleGitConnector", {
url: "https://github.com/harness/terraform-provider-harness",
branch: "master",
generateWebhookUrl: true,
passwordSecretId: exampleEncryptedText.id,
urlType: "REPO",
username: "someuser",
});
resources:
exampleEncryptedText:
type: harness:EncryptedText
properties:
value: foo
secretManagerId: ${default.id}
exampleGitConnector:
type: harness:GitConnector
properties:
url: https://github.com/harness/terraform-provider-harness
branch: master
generateWebhookUrl: true
passwordSecretId: ${exampleEncryptedText.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=harness.GitConnectorCommitDetailsArgs(
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=[harness.GitConnectorUsageScopeArgs(
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
The GitConnector resource accepts the following input properties:
- Url string
- The URL of the git repository or account/organization
- Url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- Branch string
- The branch of the git connector to use
- Commit
Details Lbrlabs.Pulumi Package. Harness. Inputs. Git Connector Commit Details - Custom details to use when making commits using this git connector
- Delegate
Selectors List<string> - Delegate selectors to apply to this git connector.
- Generate
Webhook boolUrl - Boolean indicating whether or not to generate a webhook url.
- Name string
- Name of the git connector.
- Password
Secret stringId - The id of the secret for connecting to the git repository.
- Ssh
Setting stringId - The id of the SSH secret to use
- Usage
Scopes List<Lbrlabs.Pulumi Package. Harness. Inputs. Git Connector Usage Scope> - 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
- Url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- Branch string
- The branch of the git connector to use
- Commit
Details GitConnector Commit Details Args - Custom details to use when making commits using this git connector
- Delegate
Selectors []string - Delegate selectors to apply to this git connector.
- Generate
Webhook boolUrl - Boolean indicating whether or not to generate a webhook url.
- Name string
- Name of the git connector.
- Password
Secret stringId - The id of the secret for connecting to the git repository.
- Ssh
Setting stringId - The id of the SSH secret to use
- Usage
Scopes []GitConnector Usage Scope Args - 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
- url
Type String - The type of git url being used. Options are
ACCOUNT
, andREPO.
- branch String
- The branch of the git connector to use
- commit
Details GitConnector Commit Details - Custom details to use when making commits using this git connector
- delegate
Selectors List<String> - Delegate selectors to apply to this git connector.
- generate
Webhook BooleanUrl - Boolean indicating whether or not to generate a webhook url.
- name String
- Name of the git connector.
- password
Secret StringId - The id of the secret for connecting to the git repository.
- ssh
Setting StringId - The id of the SSH secret to use
- usage
Scopes List<GitConnector Usage Scope> - 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
- url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- branch string
- The branch of the git connector to use
- commit
Details GitConnector Commit Details - Custom details to use when making commits using this git connector
- delegate
Selectors string[] - Delegate selectors to apply to this git connector.
- generate
Webhook booleanUrl - Boolean indicating whether or not to generate a webhook url.
- name string
- Name of the git connector.
- password
Secret stringId - The id of the secret for connecting to the git repository.
- ssh
Setting stringId - The id of the SSH secret to use
- usage
Scopes GitConnector Usage Scope[] - 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
, andREPO.
- branch str
- The branch of the git connector to use
- commit_
details GitConnector Commit Details Args - 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_ boolurl - Boolean indicating whether or not to generate a webhook url.
- name str
- Name of the git connector.
- password_
secret_ strid - The id of the secret for connecting to the git repository.
- ssh_
setting_ strid - The id of the SSH secret to use
- usage_
scopes Sequence[GitConnector Usage Scope Args] - 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
- url
Type String - The type of git url being used. Options are
ACCOUNT
, andREPO.
- branch String
- The branch of the git connector to use
- commit
Details Property Map - Custom details to use when making commits using this git connector
- delegate
Selectors List<String> - Delegate selectors to apply to this git connector.
- generate
Webhook BooleanUrl - Boolean indicating whether or not to generate a webhook url.
- name String
- Name of the git connector.
- password
Secret StringId - The id of the secret for connecting to the git repository.
- ssh
Setting StringId - The id of the SSH secret to use
- usage
Scopes 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:
- Created
At string - The time the git connector was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Webhook
Url string - The generated webhook url
- Created
At string - The time the git connector was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Webhook
Url string - The generated webhook url
- created
At String - The time the git connector was created
- id String
- The provider-assigned unique ID for this managed resource.
- webhook
Url String - The generated webhook url
- created
At string - The time the git connector was created
- id string
- The provider-assigned unique ID for this managed resource.
- webhook
Url 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
- created
At String - The time the git connector was created
- id String
- The provider-assigned unique ID for this managed resource.
- webhook
Url 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.
- Branch string
- The branch of the git connector to use
- Commit
Details Lbrlabs.Pulumi Package. Harness. Inputs. Git Connector Commit Details - Custom details to use when making commits using this git connector
- Created
At string - The time the git connector was created
- Delegate
Selectors List<string> - Delegate selectors to apply to this git connector.
- Generate
Webhook boolUrl - Boolean indicating whether or not to generate a webhook url.
- Name string
- Name of the git connector.
- Password
Secret stringId - The id of the secret for connecting to the git repository.
- Ssh
Setting stringId - The id of the SSH secret to use
- Url string
- The URL of the git repository or account/organization
- Url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- Usage
Scopes List<Lbrlabs.Pulumi Package. Harness. Inputs. Git Connector Usage Scope> - 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
- Webhook
Url string - The generated webhook url
- Branch string
- The branch of the git connector to use
- Commit
Details GitConnector Commit Details Args - Custom details to use when making commits using this git connector
- Created
At string - The time the git connector was created
- Delegate
Selectors []string - Delegate selectors to apply to this git connector.
- Generate
Webhook boolUrl - Boolean indicating whether or not to generate a webhook url.
- Name string
- Name of the git connector.
- Password
Secret stringId - The id of the secret for connecting to the git repository.
- Ssh
Setting stringId - The id of the SSH secret to use
- Url string
- The URL of the git repository or account/organization
- Url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- Usage
Scopes []GitConnector Usage Scope Args - 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
- Webhook
Url string - The generated webhook url
- branch String
- The branch of the git connector to use
- commit
Details GitConnector Commit Details - Custom details to use when making commits using this git connector
- created
At String - The time the git connector was created
- delegate
Selectors List<String> - Delegate selectors to apply to this git connector.
- generate
Webhook BooleanUrl - Boolean indicating whether or not to generate a webhook url.
- name String
- Name of the git connector.
- password
Secret StringId - The id of the secret for connecting to the git repository.
- ssh
Setting StringId - The id of the SSH secret to use
- url String
- The URL of the git repository or account/organization
- url
Type String - The type of git url being used. Options are
ACCOUNT
, andREPO.
- usage
Scopes List<GitConnector Usage Scope> - 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
- webhook
Url String - The generated webhook url
- branch string
- The branch of the git connector to use
- commit
Details GitConnector Commit Details - Custom details to use when making commits using this git connector
- created
At string - The time the git connector was created
- delegate
Selectors string[] - Delegate selectors to apply to this git connector.
- generate
Webhook booleanUrl - Boolean indicating whether or not to generate a webhook url.
- name string
- Name of the git connector.
- password
Secret stringId - The id of the secret for connecting to the git repository.
- ssh
Setting stringId - The id of the SSH secret to use
- url string
- The URL of the git repository or account/organization
- url
Type string - The type of git url being used. Options are
ACCOUNT
, andREPO.
- usage
Scopes GitConnector Usage Scope[] - 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
- webhook
Url string - The generated webhook url
- branch str
- The branch of the git connector to use
- commit_
details GitConnector Commit Details Args - 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_ boolurl - Boolean indicating whether or not to generate a webhook url.
- name str
- Name of the git connector.
- password_
secret_ strid - The id of the secret for connecting to the git repository.
- ssh_
setting_ strid - 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
, andREPO.
- usage_
scopes Sequence[GitConnector Usage Scope Args] - 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
- commit
Details Property Map - Custom details to use when making commits using this git connector
- created
At String - The time the git connector was created
- delegate
Selectors List<String> - Delegate selectors to apply to this git connector.
- generate
Webhook BooleanUrl - Boolean indicating whether or not to generate a webhook url.
- name String
- Name of the git connector.
- password
Secret StringId - The id of the secret for connecting to the git repository.
- ssh
Setting StringId - The id of the SSH secret to use
- url String
- The URL of the git repository or account/organization
- url
Type String - The type of git url being used. Options are
ACCOUNT
, andREPO.
- usage
Scopes 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
- webhook
Url String - The generated webhook url
Supporting Types
GitConnectorCommitDetails, GitConnectorCommitDetailsArgs
- string
- The email id of the author
- string
- The name of the author
- Message string
- Commit message
- string
- The email id of the author
- string
- The name of the author
- Message string
- Commit message
- String
- The email id of the author
- String
- The name of the author
- message String
- Commit message
- string
- The email id of the author
- string
- The name of the author
- message string
- Commit message
- str
- The email id of the author
- str
- The name of the author
- message str
- Commit message
- String
- The email id of the author
- String
- The name of the author
- message String
- Commit message
GitConnectorUsageScope, GitConnectorUsageScopeArgs
- Application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- Environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - Environment
Id string - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- Application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- Environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - Environment
Id string - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application
Id String - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter StringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id String - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id 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_ strtype - 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
.
- application
Id String - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter StringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id 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 lbrlabs/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.