1. Packages
  2. Ibm Provider
  3. API Docs
  4. CdToolchainToolHostedgit
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.CdToolchainToolHostedgit

Explore with Pulumi AI

Create, update, and delete cd_toolchain_tool_hostedgits with this resource.

See the tool integration page for more information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const cdToolchainToolHostedgitInstance = new ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitInstance", {
    initialization: {
        gitId: "hostedgit",
        ownerId: "<gitlab-user-id>",
        repoName: "myrepo",
        sourceRepoUrl: "https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo",
        type: "clone",
        privateRepo: true,
    },
    parameters: {
        enableTraceability: false,
        integrationOwner: "my-userid",
        authType: "pat",
        apiToken: "<api_token>",
        toolchainIssuesEnabled: true,
    },
    toolchainId: ibm_cd_toolchain.cd_toolchain.id,
});
Copy
import pulumi
import pulumi_ibm as ibm

cd_toolchain_tool_hostedgit_instance = ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitInstance",
    initialization={
        "git_id": "hostedgit",
        "owner_id": "<gitlab-user-id>",
        "repo_name": "myrepo",
        "source_repo_url": "https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo",
        "type": "clone",
        "private_repo": True,
    },
    parameters={
        "enable_traceability": False,
        "integration_owner": "my-userid",
        "auth_type": "pat",
        "api_token": "<api_token>",
        "toolchain_issues_enabled": True,
    },
    toolchain_id=ibm_cd_toolchain["cd_toolchain"]["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ibm.NewCdToolchainToolHostedgit(ctx, "cdToolchainToolHostedgitInstance", &ibm.CdToolchainToolHostedgitArgs{
			Initialization: &ibm.CdToolchainToolHostedgitInitializationArgs{
				GitId:         pulumi.String("hostedgit"),
				OwnerId:       pulumi.String("<gitlab-user-id>"),
				RepoName:      pulumi.String("myrepo"),
				SourceRepoUrl: pulumi.String("https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo"),
				Type:          pulumi.String("clone"),
				PrivateRepo:   pulumi.Bool(true),
			},
			Parameters: &ibm.CdToolchainToolHostedgitParametersArgs{
				EnableTraceability:     pulumi.Bool(false),
				IntegrationOwner:       pulumi.String("my-userid"),
				AuthType:               pulumi.String("pat"),
				ApiToken:               pulumi.String("<api_token>"),
				ToolchainIssuesEnabled: pulumi.Bool(true),
			},
			ToolchainId: pulumi.Any(ibm_cd_toolchain.Cd_toolchain.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var cdToolchainToolHostedgitInstance = new Ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitInstance", new()
    {
        Initialization = new Ibm.Inputs.CdToolchainToolHostedgitInitializationArgs
        {
            GitId = "hostedgit",
            OwnerId = "<gitlab-user-id>",
            RepoName = "myrepo",
            SourceRepoUrl = "https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo",
            Type = "clone",
            PrivateRepo = true,
        },
        Parameters = new Ibm.Inputs.CdToolchainToolHostedgitParametersArgs
        {
            EnableTraceability = false,
            IntegrationOwner = "my-userid",
            AuthType = "pat",
            ApiToken = "<api_token>",
            ToolchainIssuesEnabled = true,
        },
        ToolchainId = ibm_cd_toolchain.Cd_toolchain.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CdToolchainToolHostedgit;
import com.pulumi.ibm.CdToolchainToolHostedgitArgs;
import com.pulumi.ibm.inputs.CdToolchainToolHostedgitInitializationArgs;
import com.pulumi.ibm.inputs.CdToolchainToolHostedgitParametersArgs;
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 cdToolchainToolHostedgitInstance = new CdToolchainToolHostedgit("cdToolchainToolHostedgitInstance", CdToolchainToolHostedgitArgs.builder()
            .initialization(CdToolchainToolHostedgitInitializationArgs.builder()
                .gitId("hostedgit")
                .ownerId("<gitlab-user-id>")
                .repoName("myrepo")
                .sourceRepoUrl("https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo")
                .type("clone")
                .privateRepo(true)
                .build())
            .parameters(CdToolchainToolHostedgitParametersArgs.builder()
                .enableTraceability(false)
                .integrationOwner("my-userid")
                .authType("pat")
                .apiToken("<api_token>")
                .toolchainIssuesEnabled(true)
                .build())
            .toolchainId(ibm_cd_toolchain.cd_toolchain().id())
            .build());

    }
}
Copy
resources:
  cdToolchainToolHostedgitInstance:
    type: ibm:CdToolchainToolHostedgit
    properties:
      initialization:
        gitId: hostedgit
        ownerId: <gitlab-user-id>
        repoName: myrepo
        sourceRepoUrl: https://us-south.git.cloud.ibm.com/source-repo-owner/source-repo
        type: clone
        privateRepo: true
      parameters:
        enableTraceability: false
        integrationOwner: my-userid
        authType: pat
        apiToken: <api_token>
        toolchainIssuesEnabled: true
      toolchainId: ${ibm_cd_toolchain.cd_toolchain.id}
Copy

Create CdToolchainToolHostedgit Resource

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

Constructor syntax

new CdToolchainToolHostedgit(name: string, args: CdToolchainToolHostedgitArgs, opts?: CustomResourceOptions);
@overload
def CdToolchainToolHostedgit(resource_name: str,
                             args: CdToolchainToolHostedgitArgs,
                             opts: Optional[ResourceOptions] = None)

@overload
def CdToolchainToolHostedgit(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             initialization: Optional[CdToolchainToolHostedgitInitializationArgs] = None,
                             parameters: Optional[CdToolchainToolHostedgitParametersArgs] = None,
                             toolchain_id: Optional[str] = None,
                             cd_toolchain_tool_hostedgit_id: Optional[str] = None,
                             name: Optional[str] = None)
func NewCdToolchainToolHostedgit(ctx *Context, name string, args CdToolchainToolHostedgitArgs, opts ...ResourceOption) (*CdToolchainToolHostedgit, error)
public CdToolchainToolHostedgit(string name, CdToolchainToolHostedgitArgs args, CustomResourceOptions? opts = null)
public CdToolchainToolHostedgit(String name, CdToolchainToolHostedgitArgs args)
public CdToolchainToolHostedgit(String name, CdToolchainToolHostedgitArgs args, CustomResourceOptions options)
type: ibm:CdToolchainToolHostedgit
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CdToolchainToolHostedgitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CdToolchainToolHostedgitArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CdToolchainToolHostedgitArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CdToolchainToolHostedgitArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CdToolchainToolHostedgitArgs
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 cdToolchainToolHostedgitResource = new Ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitResource", new()
{
    Initialization = new Ibm.Inputs.CdToolchainToolHostedgitInitializationArgs
    {
        Type = "string",
        GitId = "string",
        OwnerId = "string",
        PrivateRepo = false,
        RepoName = "string",
        RepoUrl = "string",
        SourceRepoUrl = "string",
    },
    Parameters = new Ibm.Inputs.CdToolchainToolHostedgitParametersArgs
    {
        ApiRootUrl = "string",
        ApiToken = "string",
        AuthType = "string",
        DefaultBranch = "string",
        EnableTraceability = false,
        GitId = "string",
        IntegrationOwner = "string",
        OwnerId = "string",
        PrivateRepo = false,
        RepoId = "string",
        RepoName = "string",
        RepoUrl = "string",
        SourceRepoUrl = "string",
        TokenUrl = "string",
        ToolchainIssuesEnabled = false,
        Type = "string",
    },
    ToolchainId = "string",
    CdToolchainToolHostedgitId = "string",
    Name = "string",
});
Copy
example, err := ibm.NewCdToolchainToolHostedgit(ctx, "cdToolchainToolHostedgitResource", &ibm.CdToolchainToolHostedgitArgs{
Initialization: &.CdToolchainToolHostedgitInitializationArgs{
Type: pulumi.String("string"),
GitId: pulumi.String("string"),
OwnerId: pulumi.String("string"),
PrivateRepo: pulumi.Bool(false),
RepoName: pulumi.String("string"),
RepoUrl: pulumi.String("string"),
SourceRepoUrl: pulumi.String("string"),
},
Parameters: &.CdToolchainToolHostedgitParametersArgs{
ApiRootUrl: pulumi.String("string"),
ApiToken: pulumi.String("string"),
AuthType: pulumi.String("string"),
DefaultBranch: pulumi.String("string"),
EnableTraceability: pulumi.Bool(false),
GitId: pulumi.String("string"),
IntegrationOwner: pulumi.String("string"),
OwnerId: pulumi.String("string"),
PrivateRepo: pulumi.Bool(false),
RepoId: pulumi.String("string"),
RepoName: pulumi.String("string"),
RepoUrl: pulumi.String("string"),
SourceRepoUrl: pulumi.String("string"),
TokenUrl: pulumi.String("string"),
ToolchainIssuesEnabled: pulumi.Bool(false),
Type: pulumi.String("string"),
},
ToolchainId: pulumi.String("string"),
CdToolchainToolHostedgitId: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var cdToolchainToolHostedgitResource = new CdToolchainToolHostedgit("cdToolchainToolHostedgitResource", CdToolchainToolHostedgitArgs.builder()
    .initialization(CdToolchainToolHostedgitInitializationArgs.builder()
        .type("string")
        .gitId("string")
        .ownerId("string")
        .privateRepo(false)
        .repoName("string")
        .repoUrl("string")
        .sourceRepoUrl("string")
        .build())
    .parameters(CdToolchainToolHostedgitParametersArgs.builder()
        .apiRootUrl("string")
        .apiToken("string")
        .authType("string")
        .defaultBranch("string")
        .enableTraceability(false)
        .gitId("string")
        .integrationOwner("string")
        .ownerId("string")
        .privateRepo(false)
        .repoId("string")
        .repoName("string")
        .repoUrl("string")
        .sourceRepoUrl("string")
        .tokenUrl("string")
        .toolchainIssuesEnabled(false)
        .type("string")
        .build())
    .toolchainId("string")
    .cdToolchainToolHostedgitId("string")
    .name("string")
    .build());
Copy
cd_toolchain_tool_hostedgit_resource = ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitResource",
    initialization={
        "type": "string",
        "git_id": "string",
        "owner_id": "string",
        "private_repo": False,
        "repo_name": "string",
        "repo_url": "string",
        "source_repo_url": "string",
    },
    parameters={
        "api_root_url": "string",
        "api_token": "string",
        "auth_type": "string",
        "default_branch": "string",
        "enable_traceability": False,
        "git_id": "string",
        "integration_owner": "string",
        "owner_id": "string",
        "private_repo": False,
        "repo_id": "string",
        "repo_name": "string",
        "repo_url": "string",
        "source_repo_url": "string",
        "token_url": "string",
        "toolchain_issues_enabled": False,
        "type": "string",
    },
    toolchain_id="string",
    cd_toolchain_tool_hostedgit_id="string",
    name="string")
Copy
const cdToolchainToolHostedgitResource = new ibm.CdToolchainToolHostedgit("cdToolchainToolHostedgitResource", {
    initialization: {
        type: "string",
        gitId: "string",
        ownerId: "string",
        privateRepo: false,
        repoName: "string",
        repoUrl: "string",
        sourceRepoUrl: "string",
    },
    parameters: {
        apiRootUrl: "string",
        apiToken: "string",
        authType: "string",
        defaultBranch: "string",
        enableTraceability: false,
        gitId: "string",
        integrationOwner: "string",
        ownerId: "string",
        privateRepo: false,
        repoId: "string",
        repoName: "string",
        repoUrl: "string",
        sourceRepoUrl: "string",
        tokenUrl: "string",
        toolchainIssuesEnabled: false,
        type: "string",
    },
    toolchainId: "string",
    cdToolchainToolHostedgitId: "string",
    name: "string",
});
Copy
type: ibm:CdToolchainToolHostedgit
properties:
    cdToolchainToolHostedgitId: string
    initialization:
        gitId: string
        ownerId: string
        privateRepo: false
        repoName: string
        repoUrl: string
        sourceRepoUrl: string
        type: string
    name: string
    parameters:
        apiRootUrl: string
        apiToken: string
        authType: string
        defaultBranch: string
        enableTraceability: false
        gitId: string
        integrationOwner: string
        ownerId: string
        privateRepo: false
        repoId: string
        repoName: string
        repoUrl: string
        sourceRepoUrl: string
        tokenUrl: string
        toolchainIssuesEnabled: false
        type: string
    toolchainId: string
Copy

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

Initialization This property is required. CdToolchainToolHostedgitInitialization
Nested schema for initialization:
Parameters This property is required. CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
ToolchainId This property is required. string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
CdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
Name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
Initialization This property is required. CdToolchainToolHostedgitInitializationArgs
Nested schema for initialization:
Parameters This property is required. CdToolchainToolHostedgitParametersArgs
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
ToolchainId This property is required. string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
CdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
Name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
initialization This property is required. CdToolchainToolHostedgitInitialization
Nested schema for initialization:
parameters This property is required. CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
toolchainId This property is required. String
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
cdToolchainToolHostedgitId String
The unique identifier of the cd_toolchain_tool_hostedgit.
name String
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
initialization This property is required. CdToolchainToolHostedgitInitialization
Nested schema for initialization:
parameters This property is required. CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
toolchainId This property is required. string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
cdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
initialization This property is required. CdToolchainToolHostedgitInitializationArgs
Nested schema for initialization:
parameters This property is required. CdToolchainToolHostedgitParametersArgs
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
toolchain_id This property is required. str
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
cd_toolchain_tool_hostedgit_id str
The unique identifier of the cd_toolchain_tool_hostedgit.
name str
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
initialization This property is required. Property Map
Nested schema for initialization:
parameters This property is required. Property Map
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
toolchainId This property is required. String
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
cdToolchainToolHostedgitId String
The unique identifier of the cd_toolchain_tool_hostedgit.
name String
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.

Outputs

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

Crn string
(String) Tool CRN.
Href string
(String) URI representing the tool.
Id string
The provider-assigned unique ID for this managed resource.
Referents List<CdToolchainToolHostedgitReferent>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
ResourceGroupId string
(String) Resource group where the tool is located.
State string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
ToolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
ToolchainCrn string
(String) CRN of toolchain which the tool is bound to.
UpdatedAt string
(String) Latest tool update timestamp.
Crn string
(String) Tool CRN.
Href string
(String) URI representing the tool.
Id string
The provider-assigned unique ID for this managed resource.
Referents []CdToolchainToolHostedgitReferent
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
ResourceGroupId string
(String) Resource group where the tool is located.
State string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
ToolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
ToolchainCrn string
(String) CRN of toolchain which the tool is bound to.
UpdatedAt string
(String) Latest tool update timestamp.
crn String
(String) Tool CRN.
href String
(String) URI representing the tool.
id String
The provider-assigned unique ID for this managed resource.
referents List<CdToolchainToolHostedgitReferent>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId String
(String) Resource group where the tool is located.
state String
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId String
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn String
(String) CRN of toolchain which the tool is bound to.
updatedAt String
(String) Latest tool update timestamp.
crn string
(String) Tool CRN.
href string
(String) URI representing the tool.
id string
The provider-assigned unique ID for this managed resource.
referents CdToolchainToolHostedgitReferent[]
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId string
(String) Resource group where the tool is located.
state string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn string
(String) CRN of toolchain which the tool is bound to.
updatedAt string
(String) Latest tool update timestamp.
crn str
(String) Tool CRN.
href str
(String) URI representing the tool.
id str
The provider-assigned unique ID for this managed resource.
referents Sequence[CdToolchainToolHostedgitReferent]
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resource_group_id str
(String) Resource group where the tool is located.
state str
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
tool_id str
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchain_crn str
(String) CRN of toolchain which the tool is bound to.
updated_at str
(String) Latest tool update timestamp.
crn String
(String) Tool CRN.
href String
(String) URI representing the tool.
id String
The provider-assigned unique ID for this managed resource.
referents List<Property Map>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId String
(String) Resource group where the tool is located.
state String
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId String
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn String
(String) CRN of toolchain which the tool is bound to.
updatedAt String
(String) Latest tool update timestamp.

Look up Existing CdToolchainToolHostedgit Resource

Get an existing CdToolchainToolHostedgit 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?: CdToolchainToolHostedgitState, opts?: CustomResourceOptions): CdToolchainToolHostedgit
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cd_toolchain_tool_hostedgit_id: Optional[str] = None,
        crn: Optional[str] = None,
        href: Optional[str] = None,
        initialization: Optional[CdToolchainToolHostedgitInitializationArgs] = None,
        name: Optional[str] = None,
        parameters: Optional[CdToolchainToolHostedgitParametersArgs] = None,
        referents: Optional[Sequence[CdToolchainToolHostedgitReferentArgs]] = None,
        resource_group_id: Optional[str] = None,
        state: Optional[str] = None,
        tool_id: Optional[str] = None,
        toolchain_crn: Optional[str] = None,
        toolchain_id: Optional[str] = None,
        updated_at: Optional[str] = None) -> CdToolchainToolHostedgit
func GetCdToolchainToolHostedgit(ctx *Context, name string, id IDInput, state *CdToolchainToolHostedgitState, opts ...ResourceOption) (*CdToolchainToolHostedgit, error)
public static CdToolchainToolHostedgit Get(string name, Input<string> id, CdToolchainToolHostedgitState? state, CustomResourceOptions? opts = null)
public static CdToolchainToolHostedgit get(String name, Output<String> id, CdToolchainToolHostedgitState state, CustomResourceOptions options)
resources:  _:    type: ibm:CdToolchainToolHostedgit    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
Crn string
(String) Tool CRN.
Href string
(String) URI representing the tool.
Initialization CdToolchainToolHostedgitInitialization
Nested schema for initialization:
Name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
Parameters CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
Referents List<CdToolchainToolHostedgitReferent>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
ResourceGroupId string
(String) Resource group where the tool is located.
State string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
ToolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
ToolchainCrn string
(String) CRN of toolchain which the tool is bound to.
ToolchainId string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
UpdatedAt string
(String) Latest tool update timestamp.
CdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
Crn string
(String) Tool CRN.
Href string
(String) URI representing the tool.
Initialization CdToolchainToolHostedgitInitializationArgs
Nested schema for initialization:
Name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
Parameters CdToolchainToolHostedgitParametersArgs
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
Referents []CdToolchainToolHostedgitReferentArgs
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
ResourceGroupId string
(String) Resource group where the tool is located.
State string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
ToolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
ToolchainCrn string
(String) CRN of toolchain which the tool is bound to.
ToolchainId string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
UpdatedAt string
(String) Latest tool update timestamp.
cdToolchainToolHostedgitId String
The unique identifier of the cd_toolchain_tool_hostedgit.
crn String
(String) Tool CRN.
href String
(String) URI representing the tool.
initialization CdToolchainToolHostedgitInitialization
Nested schema for initialization:
name String
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
parameters CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
referents List<CdToolchainToolHostedgitReferent>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId String
(String) Resource group where the tool is located.
state String
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId String
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn String
(String) CRN of toolchain which the tool is bound to.
toolchainId String
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
updatedAt String
(String) Latest tool update timestamp.
cdToolchainToolHostedgitId string
The unique identifier of the cd_toolchain_tool_hostedgit.
crn string
(String) Tool CRN.
href string
(String) URI representing the tool.
initialization CdToolchainToolHostedgitInitialization
Nested schema for initialization:
name string
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
parameters CdToolchainToolHostedgitParameters
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
referents CdToolchainToolHostedgitReferent[]
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId string
(String) Resource group where the tool is located.
state string
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId string
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn string
(String) CRN of toolchain which the tool is bound to.
toolchainId string
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
updatedAt string
(String) Latest tool update timestamp.
cd_toolchain_tool_hostedgit_id str
The unique identifier of the cd_toolchain_tool_hostedgit.
crn str
(String) Tool CRN.
href str
(String) URI representing the tool.
initialization CdToolchainToolHostedgitInitializationArgs
Nested schema for initialization:
name str
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
parameters CdToolchainToolHostedgitParametersArgs
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
referents Sequence[CdToolchainToolHostedgitReferentArgs]
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resource_group_id str
(String) Resource group where the tool is located.
state str
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
tool_id str
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchain_crn str
(String) CRN of toolchain which the tool is bound to.
toolchain_id str
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
updated_at str
(String) Latest tool update timestamp.
cdToolchainToolHostedgitId String
The unique identifier of the cd_toolchain_tool_hostedgit.
crn String
(String) Tool CRN.
href String
(String) URI representing the tool.
initialization Property Map
Nested schema for initialization:
name String
Name of the tool.

  • Constraints: The maximum length is 128 characters. The minimum length is 0 characters. The value must match regular expression /^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/.
parameters Property Map
Unique key-value pairs representing parameters to be used to create the tool. A list of parameters for each tool integration can be found in the Configuring tool integrations page. Nested schema for parameters:
referents List<Property Map>
(List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
resourceGroupId String
(String) Resource group where the tool is located.
state String
(String) Current configuration state of the tool.

  • Constraints: Allowable values are: configured, configuring, misconfigured, unconfigured.
toolId String
(String) Tool ID.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
toolchainCrn String
(String) CRN of toolchain which the tool is bound to.
toolchainId String
ID of the toolchain to bind the tool to.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
updatedAt String
(String) Latest tool update timestamp.

Supporting Types

CdToolchainToolHostedgitInitialization
, CdToolchainToolHostedgitInitializationArgs

Type This property is required. string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
GitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
OwnerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
PrivateRepo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
RepoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
RepoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
SourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
Type This property is required. string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
GitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
OwnerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
PrivateRepo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
RepoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
RepoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
SourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
type This property is required. String
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
gitId String
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
ownerId String
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo Boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoName String
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl String
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl String
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
type This property is required. string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
gitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
ownerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
type This property is required. str
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
git_id str
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
owner_id str
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
private_repo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repo_name str
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repo_url str
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
source_repo_url str
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
type This property is required. String
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
gitId String
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
ownerId String
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo Boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoName String
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl String
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl String
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.

CdToolchainToolHostedgitParameters
, CdToolchainToolHostedgitParametersArgs

ApiRootUrl string
The API root URL for the GitLab server.
ApiToken string
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
AuthType string
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
DefaultBranch string
The default branch of the git repository.
EnableTraceability bool
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
GitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
IntegrationOwner string
Select the user which git operations will be performed as.
OwnerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
PrivateRepo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
RepoId string
The ID of the Git Repos and Issue Tracking project.
RepoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
RepoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
SourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
TokenUrl string
The token URL used for authorizing with the Bitbucket server.
ToolchainIssuesEnabled bool
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
Type string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
ApiRootUrl string
The API root URL for the GitLab server.
ApiToken string
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
AuthType string
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
DefaultBranch string
The default branch of the git repository.
EnableTraceability bool
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
GitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
IntegrationOwner string
Select the user which git operations will be performed as.
OwnerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
PrivateRepo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
RepoId string
The ID of the Git Repos and Issue Tracking project.
RepoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
RepoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
SourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
TokenUrl string
The token URL used for authorizing with the Bitbucket server.
ToolchainIssuesEnabled bool
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
Type string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
apiRootUrl String
The API root URL for the GitLab server.
apiToken String
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
authType String
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
defaultBranch String
The default branch of the git repository.
enableTraceability Boolean
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
gitId String
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
integrationOwner String
Select the user which git operations will be performed as.
ownerId String
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo Boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoId String
The ID of the Git Repos and Issue Tracking project.
repoName String
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl String
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl String
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
tokenUrl String
The token URL used for authorizing with the Bitbucket server.
toolchainIssuesEnabled Boolean
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
type String
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
apiRootUrl string
The API root URL for the GitLab server.
apiToken string
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
authType string
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
defaultBranch string
The default branch of the git repository.
enableTraceability boolean
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
gitId string
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
integrationOwner string
Select the user which git operations will be performed as.
ownerId string
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoId string
The ID of the Git Repos and Issue Tracking project.
repoName string
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl string
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl string
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
tokenUrl string
The token URL used for authorizing with the Bitbucket server.
toolchainIssuesEnabled boolean
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
type string
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
api_root_url str
The API root URL for the GitLab server.
api_token str
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
auth_type str
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
default_branch str
The default branch of the git repository.
enable_traceability bool
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
git_id str
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
integration_owner str
Select the user which git operations will be performed as.
owner_id str
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
private_repo bool
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repo_id str
The ID of the Git Repos and Issue Tracking project.
repo_name str
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repo_url str
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
source_repo_url str
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
token_url str
The token URL used for authorizing with the Bitbucket server.
toolchain_issues_enabled bool
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
type str
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.
apiRootUrl String
The API root URL for the GitLab server.
apiToken String
Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
authType String
Select the method of authentication that will be used to access the git provider. The default value is 'oauth'.

  • Constraints: Allowable values are: oauth, pat.
defaultBranch String
The default branch of the git repository.
enableTraceability Boolean
Set this value to 'true' to track the deployment of code changes by creating tags, labels and comments on commits, pull requests and referenced issues.

  • Constraints: The default value is false.
gitId String
Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
integrationOwner String
Select the user which git operations will be performed as.
ownerId String
The GitLab user or group that owns the repository. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
privateRepo Boolean
Set this value to 'true' to make the repository private when creating a new repository or when cloning or forking a repository. This parameter is not used when linking to an existing repository.

  • Constraints: The default value is true.
repoId String
The ID of the Git Repos and Issue Tracking project.
repoName String
The name of the new GitLab repository to create. This parameter is required when creating a new repository, cloning, or forking a repository. The value will be computed when linking to an existing repository.
repoUrl String
The URL of the GitLab repository for this tool integration. This parameter is required when linking to an existing repository. The value will be computed when creating a new repository, cloning, or forking a repository.
sourceRepoUrl String
The URL of the repository that you are forking or cloning. This parameter is required when forking or cloning a repository. It is not used when creating a new repository or linking to an existing repository.
tokenUrl String
The token URL used for authorizing with the Bitbucket server.
toolchainIssuesEnabled Boolean
Setting this value to true will enable issues on the GitLab repository and add an issues tool card to the toolchain. Setting the value to false will remove the tool card from the toolchain, but will not impact whether or not issues are enabled on the GitLab repository itself.

  • Constraints: The default value is true.
type String
The operation that should be performed to initialize the new tool integration. Use 'new' or 'new_if_not_exists' to create a new git repository, 'clone' or 'clone_if_not_exists' to clone an existing repository into a new git repository, 'fork' or 'fork_if_not_exists' to fork an existing git repository, or 'link' to link to an existing git repository. If you attempt to apply a resource with type 'new', 'clone', or 'fork' when the target repo already exists, the attempt will fail. If you apply a resource with type 'new_if_not_exists`, 'clone_if_not_exists', or 'fork_if_not_exists' when the target repo already exists, the existing repo will be used as-is.

  • Constraints: Allowable values are: new, fork, clone, link, new_if_not_exists, clone_if_not_exists, fork_if_not_exists.

CdToolchainToolHostedgitReferent
, CdToolchainToolHostedgitReferentArgs

ApiHref This property is required. string
(String) URI representing this resource through an API.
UiHref This property is required. string
(String) URI representing this resource through the UI.
ApiHref This property is required. string
(String) URI representing this resource through an API.
UiHref This property is required. string
(String) URI representing this resource through the UI.
apiHref This property is required. String
(String) URI representing this resource through an API.
uiHref This property is required. String
(String) URI representing this resource through the UI.
apiHref This property is required. string
(String) URI representing this resource through an API.
uiHref This property is required. string
(String) URI representing this resource through the UI.
api_href This property is required. str
(String) URI representing this resource through an API.
ui_href This property is required. str
(String) URI representing this resource through the UI.
apiHref This property is required. String
(String) URI representing this resource through an API.
uiHref This property is required. String
(String) URI representing this resource through the UI.

Import

You can import the ibm_cd_toolchain_tool_hostedgit resource by using id.

The id property can be formed from toolchain_id, and tool_id in the following format:

<toolchain_id>/<tool_id>

  • toolchain_id: A string. ID of the toolchain to bind the tool to.

  • tool_id: A string. ID of the tool bound to the toolchain.

Syntax

$ pulumi import ibm:index/cdToolchainToolHostedgit:CdToolchainToolHostedgit cd_toolchain_tool_hostedgit <toolchain_id>/<tool_id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.