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,
});
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"])
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
})
}
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,
});
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args CdToolchainToolHostedgitArgs
- 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 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 string
- The unique name of the resource.
- args CdToolchainToolHostedgitArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CdToolchainToolHostedgitArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := ibm.NewCdToolchainToolHostedgit(ctx, "cdToolchainToolHostedgitResource", &ibm.CdToolchainToolHostedgitArgs{
Initialization: &ibm.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: &ibm.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"),
})
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());
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")
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",
});
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
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
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- Parameters
Cd
Toolchain Tool Hostedgit Parameters - 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 string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Cd
Toolchain stringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Initialization
Cd
Toolchain Tool Hostedgit Initialization Args - Nested schema for initialization:
- Parameters
Cd
Toolchain Tool Hostedgit Parameters Args - 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 string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Cd
Toolchain stringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- initialization
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- parameters
Cd
Toolchain Tool Hostedgit Parameters - 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 String - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- cd
Toolchain StringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- initialization
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- parameters
Cd
Toolchain Tool Hostedgit Parameters - 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 string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- cd
Toolchain stringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- initialization
Cd
Toolchain Tool Hostedgit Initialization Args - Nested schema for initialization:
- parameters
Cd
Toolchain Tool Hostedgit Parameters Args - 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 str - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- cd_
toolchain_ strtool_ hostedgit_ id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- initialization Property Map
- Nested schema for initialization:
- 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:
- toolchain
Id String - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- cd
Toolchain StringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
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<Cd
Toolchain Tool Hostedgit Referent> - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- Resource
Group stringId - (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
.
- Constraints: Allowable values are:
- Tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Updated
At 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
[]Cd
Toolchain Tool Hostedgit Referent - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- Resource
Group stringId - (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
.
- Constraints: Allowable values are:
- Tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Updated
At 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<Cd
Toolchain Tool Hostedgit Referent> - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource
Group StringId - (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
.
- Constraints: Allowable values are:
- tool
Id String - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- updated
At 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
Cd
Toolchain Tool Hostedgit Referent[] - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource
Group stringId - (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
.
- Constraints: Allowable values are:
- tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- updated
At 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[Cd
Toolchain Tool Hostedgit Referent] - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource_
group_ strid - (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
.
- Constraints: Allowable values are:
- tool_
id str - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- 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:
- resource
Group StringId - (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
.
- Constraints: Allowable values are:
- tool
Id String - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- updated
At 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
- 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.
- Cd
Toolchain stringTool Hostedgit Id - The unique identifier of the cd_toolchain_tool_hostedgit.
- Crn string
- (String) Tool CRN.
- Href string
- (String) URI representing the tool.
- Initialization
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- Name string
- Name of the tool.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Parameters
Cd
Toolchain Tool Hostedgit Parameters - 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<Cd
Toolchain Tool Hostedgit Referent> - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- Resource
Group stringId - (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
.
- Constraints: Allowable values are:
- Tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Toolchain
Id string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Updated
At string - (String) Latest tool update timestamp.
- Cd
Toolchain stringTool Hostedgit Id - The unique identifier of the cd_toolchain_tool_hostedgit.
- Crn string
- (String) Tool CRN.
- Href string
- (String) URI representing the tool.
- Initialization
Cd
Toolchain Tool Hostedgit Initialization Args - Nested schema for initialization:
- Name string
- Name of the tool.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Parameters
Cd
Toolchain Tool Hostedgit Parameters Args - 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
[]Cd
Toolchain Tool Hostedgit Referent Args - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- Resource
Group stringId - (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
.
- Constraints: Allowable values are:
- Tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Toolchain
Id string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Updated
At string - (String) Latest tool update timestamp.
- cd
Toolchain StringTool Hostedgit Id - The unique identifier of the cd_toolchain_tool_hostedgit.
- crn String
- (String) Tool CRN.
- href String
- (String) URI representing the tool.
- initialization
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- name String
- Name of the tool.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- parameters
Cd
Toolchain Tool Hostedgit Parameters - 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<Cd
Toolchain Tool Hostedgit Referent> - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource
Group StringId - (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
.
- Constraints: Allowable values are:
- tool
Id String - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id String - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- updated
At String - (String) Latest tool update timestamp.
- cd
Toolchain stringTool Hostedgit Id - The unique identifier of the cd_toolchain_tool_hostedgit.
- crn string
- (String) Tool CRN.
- href string
- (String) URI representing the tool.
- initialization
Cd
Toolchain Tool Hostedgit Initialization - Nested schema for initialization:
- name string
- Name of the tool.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- parameters
Cd
Toolchain Tool Hostedgit Parameters - 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
Cd
Toolchain Tool Hostedgit Referent[] - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource
Group stringId - (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
.
- Constraints: Allowable values are:
- tool
Id string - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id string - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- updated
At string - (String) Latest tool update timestamp.
- cd_
toolchain_ strtool_ hostedgit_ id - The unique identifier of the cd_toolchain_tool_hostedgit.
- crn str
- (String) Tool CRN.
- href str
- (String) URI representing the tool.
- initialization
Cd
Toolchain Tool Hostedgit Initialization Args - Nested schema for initialization:
- name str
- Name of the tool.
- Constraints: The maximum length is
128
characters. The minimum length is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- parameters
Cd
Toolchain Tool Hostedgit Parameters Args - 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[Cd
Toolchain Tool Hostedgit Referent Args] - (List) Information on URIs to access this resource through the UI or API. Nested schema for referent:
- resource_
group_ strid - (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
.
- Constraints: Allowable values are:
- tool_
id str - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- 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 is36
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}$/
.
- Constraints: The maximum length is
- updated_
at str - (String) Latest tool update timestamp.
- cd
Toolchain StringTool Hostedgit Id - 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- 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:
- resource
Group StringId - (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
.
- Constraints: Allowable values are:
- tool
Id String - (String) Tool ID.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id String - ID of the toolchain to bind the tool to.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- updated
At String - (String) Latest tool update timestamp.
Supporting Types
CdToolchainToolHostedgitInitialization, CdToolchainToolHostedgitInitializationArgs
- 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
.
- Constraints: Allowable values are:
- Git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- Owner
Id 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.
- 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
.
- Constraints: The default value is
- Repo
Name 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.
- Repo
Url 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.
- Source
Repo stringUrl - 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 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
.
- Constraints: Allowable values are:
- Git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- Owner
Id 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.
- 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
.
- Constraints: The default value is
- Repo
Name 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.
- Repo
Url 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.
- Source
Repo stringUrl - 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 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
.
- Constraints: Allowable values are:
- git
Id String - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Name 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.
- repo
Url 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.
- source
Repo StringUrl - 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 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
.
- Constraints: Allowable values are:
- git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Name 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.
- repo
Url 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.
- source
Repo stringUrl - 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 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
.
- Constraints: Allowable values are:
- 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
.
- Constraints: The default value is
- 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_ strurl - 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 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
.
- Constraints: Allowable values are:
- git
Id String - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Name 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.
- repo
Url 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.
- source
Repo StringUrl - 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
- Api
Root stringUrl - The API root URL for the GitLab server.
- Api
Token string - Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
- Auth
Type 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
.
- Constraints: Allowable values are:
- Default
Branch string - 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
.
- Constraints: The default value is
- Git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- Integration
Owner string - Select the user which git operations will be performed as.
- Owner
Id 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.
- 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
.
- Constraints: The default value is
- Repo
Id string - The ID of the Git Repos and Issue Tracking project.
- Repo
Name 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.
- Repo
Url 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.
- Source
Repo stringUrl - 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 string - The token URL used for authorizing with the Bitbucket server.
- Toolchain
Issues boolEnabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
- Api
Root stringUrl - The API root URL for the GitLab server.
- Api
Token string - Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
- Auth
Type 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
.
- Constraints: Allowable values are:
- Default
Branch string - 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
.
- Constraints: The default value is
- Git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- Integration
Owner string - Select the user which git operations will be performed as.
- Owner
Id 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.
- 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
.
- Constraints: The default value is
- Repo
Id string - The ID of the Git Repos and Issue Tracking project.
- Repo
Name 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.
- Repo
Url 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.
- Source
Repo stringUrl - 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 string - The token URL used for authorizing with the Bitbucket server.
- Toolchain
Issues boolEnabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
- api
Root StringUrl - The API root URL for the GitLab server.
- api
Token String - Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
- auth
Type 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
.
- Constraints: Allowable values are:
- default
Branch String - The default branch of the git repository.
- enable
Traceability 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
.
- Constraints: The default value is
- git
Id String - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- integration
Owner String - Select the user which git operations will be performed as.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Id String - The ID of the Git Repos and Issue Tracking project.
- repo
Name 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.
- repo
Url 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.
- source
Repo StringUrl - 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 String - The token URL used for authorizing with the Bitbucket server.
- toolchain
Issues BooleanEnabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
- api
Root stringUrl - The API root URL for the GitLab server.
- api
Token string - Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
- auth
Type 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
.
- Constraints: Allowable values are:
- default
Branch string - The default branch of the git repository.
- enable
Traceability 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
.
- Constraints: The default value is
- git
Id string - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- integration
Owner string - Select the user which git operations will be performed as.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Id string - The ID of the Git Repos and Issue Tracking project.
- repo
Name 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.
- repo
Url 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.
- source
Repo stringUrl - 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 string - The token URL used for authorizing with the Bitbucket server.
- toolchain
Issues booleanEnabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
- api_
root_ strurl - 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
.
- Constraints: Allowable values are:
- 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
.
- Constraints: The default value is
- 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
.
- Constraints: The default value is
- 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_ strurl - 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_ boolenabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
- api
Root StringUrl - The API root URL for the GitLab server.
- api
Token String - Personal Access Token. Required if 'auth_type' is set to 'pat', ignored otherwise.
- auth
Type 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
.
- Constraints: Allowable values are:
- default
Branch String - The default branch of the git repository.
- enable
Traceability 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
.
- Constraints: The default value is
- git
Id String - Set this value to 'hostedgit' to target Git Repos and Issue Tracking.
- integration
Owner String - Select the user which git operations will be performed as.
- owner
Id 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.
- private
Repo 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
.
- Constraints: The default value is
- repo
Id String - The ID of the Git Repos and Issue Tracking project.
- repo
Name 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.
- repo
Url 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.
- source
Repo StringUrl - 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 String - The token URL used for authorizing with the Bitbucket server.
- toolchain
Issues BooleanEnabled - 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
.
- Constraints: The default value is
- 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
.
- Constraints: Allowable values are:
CdToolchainToolHostedgitReferent, CdToolchainToolHostedgitReferentArgs
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>
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.