1. Packages
  2. Ibm Provider
  3. API Docs
  4. CdToolchain
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.CdToolchain

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete cd_toolchains with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cdToolchainInstance = new ibm.CdToolchain("cdToolchainInstance", {
        description: "A sample toolchain to test the API",
        resourceGroupId: "6a9a01f2cff54a7f966f803d92877123",
        tags: [
            "tag1",
            "tag2",
        ],
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cd_toolchain_instance = ibm.CdToolchain("cdToolchainInstance",
        description="A sample toolchain to test the API",
        resource_group_id="6a9a01f2cff54a7f966f803d92877123",
        tags=[
            "tag1",
            "tag2",
        ])
    
    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.NewCdToolchain(ctx, "cdToolchainInstance", &ibm.CdToolchainArgs{
    			Description:     pulumi.String("A sample toolchain to test the API"),
    			ResourceGroupId: pulumi.String("6a9a01f2cff54a7f966f803d92877123"),
    			Tags: pulumi.StringArray{
    				pulumi.String("tag1"),
    				pulumi.String("tag2"),
    			},
    		})
    		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 cdToolchainInstance = new Ibm.CdToolchain("cdToolchainInstance", new()
        {
            Description = "A sample toolchain to test the API",
            ResourceGroupId = "6a9a01f2cff54a7f966f803d92877123",
            Tags = new[]
            {
                "tag1",
                "tag2",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CdToolchain;
    import com.pulumi.ibm.CdToolchainArgs;
    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 cdToolchainInstance = new CdToolchain("cdToolchainInstance", CdToolchainArgs.builder()
                .description("A sample toolchain to test the API")
                .resourceGroupId("6a9a01f2cff54a7f966f803d92877123")
                .tags(            
                    "tag1",
                    "tag2")
                .build());
    
        }
    }
    
    resources:
      cdToolchainInstance:
        type: ibm:CdToolchain
        properties:
          description: A sample toolchain to test the API
          resourceGroupId: 6a9a01f2cff54a7f966f803d92877123
          tags:
            - tag1
            - tag2
    

    Create CdToolchain Resource

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

    Constructor syntax

    new CdToolchain(name: string, args: CdToolchainArgs, opts?: CustomResourceOptions);
    @overload
    def CdToolchain(resource_name: str,
                    args: CdToolchainArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdToolchain(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    resource_group_id: Optional[str] = None,
                    cd_toolchain_id: Optional[str] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None,
                    tags: Optional[Sequence[str]] = None)
    func NewCdToolchain(ctx *Context, name string, args CdToolchainArgs, opts ...ResourceOption) (*CdToolchain, error)
    public CdToolchain(string name, CdToolchainArgs args, CustomResourceOptions? opts = null)
    public CdToolchain(String name, CdToolchainArgs args)
    public CdToolchain(String name, CdToolchainArgs args, CustomResourceOptions options)
    
    type: ibm:CdToolchain
    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 CdToolchainArgs
    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 CdToolchainArgs
    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 CdToolchainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdToolchainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdToolchainArgs
    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 cdToolchainResource = new Ibm.CdToolchain("cdToolchainResource", new()
    {
        ResourceGroupId = "string",
        CdToolchainId = "string",
        Description = "string",
        Name = "string",
        Tags = new[]
        {
            "string",
        },
    });
    
    example, err := ibm.NewCdToolchain(ctx, "cdToolchainResource", &ibm.CdToolchainArgs{
    	ResourceGroupId: pulumi.String("string"),
    	CdToolchainId:   pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var cdToolchainResource = new CdToolchain("cdToolchainResource", CdToolchainArgs.builder()
        .resourceGroupId("string")
        .cdToolchainId("string")
        .description("string")
        .name("string")
        .tags("string")
        .build());
    
    cd_toolchain_resource = ibm.CdToolchain("cdToolchainResource",
        resource_group_id="string",
        cd_toolchain_id="string",
        description="string",
        name="string",
        tags=["string"])
    
    const cdToolchainResource = new ibm.CdToolchain("cdToolchainResource", {
        resourceGroupId: "string",
        cdToolchainId: "string",
        description: "string",
        name: "string",
        tags: ["string"],
    });
    
    type: ibm:CdToolchain
    properties:
        cdToolchainId: string
        description: string
        name: string
        resourceGroupId: string
        tags:
            - string
    

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

    ResourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    CdToolchainId string
    The unique identifier of the cd_toolchain.
    Description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    Name string
    Toolchain name.

    • 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-._ ])+$/.
    Tags List<string>
    Tags associated with the toolchain.
    ResourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    CdToolchainId string
    The unique identifier of the cd_toolchain.
    Description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    Name string
    Toolchain name.

    • 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-._ ])+$/.
    Tags []string
    Tags associated with the toolchain.
    resourceGroupId String
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    cdToolchainId String
    The unique identifier of the cd_toolchain.
    description String
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    name String
    Toolchain name.

    • 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-._ ])+$/.
    tags List<String>
    Tags associated with the toolchain.
    resourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    cdToolchainId string
    The unique identifier of the cd_toolchain.
    description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    name string
    Toolchain name.

    • 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-._ ])+$/.
    tags string[]
    Tags associated with the toolchain.
    resource_group_id str
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    cd_toolchain_id str
    The unique identifier of the cd_toolchain.
    description str
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    name str
    Toolchain name.

    • 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-._ ])+$/.
    tags Sequence[str]
    Tags associated with the toolchain.
    resourceGroupId String
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    cdToolchainId String
    The unique identifier of the cd_toolchain.
    description String
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    name String
    Toolchain name.

    • 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-._ ])+$/.
    tags List<String>
    Tags associated with the toolchain.

    Outputs

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

    AccountId string
    (String) Account ID where toolchain can be found.
    CreatedAt string
    (String) Toolchain creation timestamp.
    CreatedBy string
    (String) Identity that created the toolchain.
    Crn string
    (String) Toolchain CRN.
    Href string
    (String) URI that can be used to retrieve toolchain.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    (String) Toolchain region.
    UiHref string
    (String) URL of a user-facing user interface for this toolchain.
    UpdatedAt string
    (String) Latest toolchain update timestamp.
    AccountId string
    (String) Account ID where toolchain can be found.
    CreatedAt string
    (String) Toolchain creation timestamp.
    CreatedBy string
    (String) Identity that created the toolchain.
    Crn string
    (String) Toolchain CRN.
    Href string
    (String) URI that can be used to retrieve toolchain.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    (String) Toolchain region.
    UiHref string
    (String) URL of a user-facing user interface for this toolchain.
    UpdatedAt string
    (String) Latest toolchain update timestamp.
    accountId String
    (String) Account ID where toolchain can be found.
    createdAt String
    (String) Toolchain creation timestamp.
    createdBy String
    (String) Identity that created the toolchain.
    crn String
    (String) Toolchain CRN.
    href String
    (String) URI that can be used to retrieve toolchain.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    (String) Toolchain region.
    uiHref String
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt String
    (String) Latest toolchain update timestamp.
    accountId string
    (String) Account ID where toolchain can be found.
    createdAt string
    (String) Toolchain creation timestamp.
    createdBy string
    (String) Identity that created the toolchain.
    crn string
    (String) Toolchain CRN.
    href string
    (String) URI that can be used to retrieve toolchain.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    (String) Toolchain region.
    uiHref string
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt string
    (String) Latest toolchain update timestamp.
    account_id str
    (String) Account ID where toolchain can be found.
    created_at str
    (String) Toolchain creation timestamp.
    created_by str
    (String) Identity that created the toolchain.
    crn str
    (String) Toolchain CRN.
    href str
    (String) URI that can be used to retrieve toolchain.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    (String) Toolchain region.
    ui_href str
    (String) URL of a user-facing user interface for this toolchain.
    updated_at str
    (String) Latest toolchain update timestamp.
    accountId String
    (String) Account ID where toolchain can be found.
    createdAt String
    (String) Toolchain creation timestamp.
    createdBy String
    (String) Identity that created the toolchain.
    crn String
    (String) Toolchain CRN.
    href String
    (String) URI that can be used to retrieve toolchain.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    (String) Toolchain region.
    uiHref String
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt String
    (String) Latest toolchain update timestamp.

    Look up Existing CdToolchain Resource

    Get an existing CdToolchain 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?: CdToolchainState, opts?: CustomResourceOptions): CdToolchain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            cd_toolchain_id: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            crn: Optional[str] = None,
            description: Optional[str] = None,
            href: Optional[str] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            ui_href: Optional[str] = None,
            updated_at: Optional[str] = None) -> CdToolchain
    func GetCdToolchain(ctx *Context, name string, id IDInput, state *CdToolchainState, opts ...ResourceOption) (*CdToolchain, error)
    public static CdToolchain Get(string name, Input<string> id, CdToolchainState? state, CustomResourceOptions? opts = null)
    public static CdToolchain get(String name, Output<String> id, CdToolchainState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CdToolchain    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.
    The following state arguments are supported:
    AccountId string
    (String) Account ID where toolchain can be found.
    CdToolchainId string
    The unique identifier of the cd_toolchain.
    CreatedAt string
    (String) Toolchain creation timestamp.
    CreatedBy string
    (String) Identity that created the toolchain.
    Crn string
    (String) Toolchain CRN.
    Description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    Href string
    (String) URI that can be used to retrieve toolchain.
    Location string
    (String) Toolchain region.
    Name string
    Toolchain name.

    • 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-._ ])+$/.
    ResourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    Tags List<string>
    Tags associated with the toolchain.
    UiHref string
    (String) URL of a user-facing user interface for this toolchain.
    UpdatedAt string
    (String) Latest toolchain update timestamp.
    AccountId string
    (String) Account ID where toolchain can be found.
    CdToolchainId string
    The unique identifier of the cd_toolchain.
    CreatedAt string
    (String) Toolchain creation timestamp.
    CreatedBy string
    (String) Identity that created the toolchain.
    Crn string
    (String) Toolchain CRN.
    Description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    Href string
    (String) URI that can be used to retrieve toolchain.
    Location string
    (String) Toolchain region.
    Name string
    Toolchain name.

    • 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-._ ])+$/.
    ResourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    Tags []string
    Tags associated with the toolchain.
    UiHref string
    (String) URL of a user-facing user interface for this toolchain.
    UpdatedAt string
    (String) Latest toolchain update timestamp.
    accountId String
    (String) Account ID where toolchain can be found.
    cdToolchainId String
    The unique identifier of the cd_toolchain.
    createdAt String
    (String) Toolchain creation timestamp.
    createdBy String
    (String) Identity that created the toolchain.
    crn String
    (String) Toolchain CRN.
    description String
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    href String
    (String) URI that can be used to retrieve toolchain.
    location String
    (String) Toolchain region.
    name String
    Toolchain name.

    • 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-._ ])+$/.
    resourceGroupId String
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    tags List<String>
    Tags associated with the toolchain.
    uiHref String
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt String
    (String) Latest toolchain update timestamp.
    accountId string
    (String) Account ID where toolchain can be found.
    cdToolchainId string
    The unique identifier of the cd_toolchain.
    createdAt string
    (String) Toolchain creation timestamp.
    createdBy string
    (String) Identity that created the toolchain.
    crn string
    (String) Toolchain CRN.
    description string
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    href string
    (String) URI that can be used to retrieve toolchain.
    location string
    (String) Toolchain region.
    name string
    Toolchain name.

    • 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-._ ])+$/.
    resourceGroupId string
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    tags string[]
    Tags associated with the toolchain.
    uiHref string
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt string
    (String) Latest toolchain update timestamp.
    account_id str
    (String) Account ID where toolchain can be found.
    cd_toolchain_id str
    The unique identifier of the cd_toolchain.
    created_at str
    (String) Toolchain creation timestamp.
    created_by str
    (String) Identity that created the toolchain.
    crn str
    (String) Toolchain CRN.
    description str
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    href str
    (String) URI that can be used to retrieve toolchain.
    location str
    (String) Toolchain region.
    name str
    Toolchain name.

    • 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-._ ])+$/.
    resource_group_id str
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    tags Sequence[str]
    Tags associated with the toolchain.
    ui_href str
    (String) URL of a user-facing user interface for this toolchain.
    updated_at str
    (String) Latest toolchain update timestamp.
    accountId String
    (String) Account ID where toolchain can be found.
    cdToolchainId String
    The unique identifier of the cd_toolchain.
    createdAt String
    (String) Toolchain creation timestamp.
    createdBy String
    (String) Identity that created the toolchain.
    crn String
    (String) Toolchain CRN.
    description String
    Describes the toolchain.

    • Constraints: The maximum length is 500 characters. The minimum length is 0 characters. The value must match regular expression /^(.*?)$/.
    href String
    (String) URI that can be used to retrieve toolchain.
    location String
    (String) Toolchain region.
    name String
    Toolchain name.

    • 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-._ ])+$/.
    resourceGroupId String
    Resource group where the toolchain is located.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    tags List<String>
    Tags associated with the toolchain.
    uiHref String
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt String
    (String) Latest toolchain update timestamp.

    Import

    You can import the ibm_cd_toolchain resource by using id. Toolchain ID.

    Syntax

    $ pulumi import ibm:index/cdToolchain:CdToolchain cd_toolchain <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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud