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

ibm.getCdToolchain

Explore with Pulumi AI

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

    Provides a read-only data source to retrieve information about a cd_toolchain. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cdToolchain = ibm.getCdToolchain({
        toolchainId: "b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cd_toolchain = ibm.get_cd_toolchain(toolchain_id="b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9")
    
    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.LookupCdToolchain(ctx, &ibm.LookupCdToolchainArgs{
    			ToolchainId: "b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9",
    		}, nil)
    		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 cdToolchain = Ibm.GetCdToolchain.Invoke(new()
        {
            ToolchainId = "b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCdToolchainArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var cdToolchain = IbmFunctions.getCdToolchain(GetCdToolchainArgs.builder()
                .toolchainId("b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9")
                .build());
    
        }
    }
    
    variables:
      cdToolchain:
        fn::invoke:
          function: ibm:getCdToolchain
          arguments:
            toolchainId: b7c3f7f6-0613-4a2c-a4b0-3189ac95bdc9
    

    Using getCdToolchain

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCdToolchain(args: GetCdToolchainArgs, opts?: InvokeOptions): Promise<GetCdToolchainResult>
    function getCdToolchainOutput(args: GetCdToolchainOutputArgs, opts?: InvokeOptions): Output<GetCdToolchainResult>
    def get_cd_toolchain(id: Optional[str] = None,
                         toolchain_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCdToolchainResult
    def get_cd_toolchain_output(id: Optional[pulumi.Input[str]] = None,
                         toolchain_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCdToolchainResult]
    func LookupCdToolchain(ctx *Context, args *LookupCdToolchainArgs, opts ...InvokeOption) (*LookupCdToolchainResult, error)
    func LookupCdToolchainOutput(ctx *Context, args *LookupCdToolchainOutputArgs, opts ...InvokeOption) LookupCdToolchainResultOutput

    > Note: This function is named LookupCdToolchain in the Go SDK.

    public static class GetCdToolchain 
    {
        public static Task<GetCdToolchainResult> InvokeAsync(GetCdToolchainArgs args, InvokeOptions? opts = null)
        public static Output<GetCdToolchainResult> Invoke(GetCdToolchainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdToolchainResult> getCdToolchain(GetCdToolchainArgs args, InvokeOptions options)
    public static Output<GetCdToolchainResult> getCdToolchain(GetCdToolchainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCdToolchain:getCdToolchain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ToolchainId string
    ID of the toolchain.

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

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    Id string
    The unique identifier of the cd_toolchain.
    toolchainId String
    ID of the toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    id String
    The unique identifier of the cd_toolchain.
    toolchainId string
    ID of the toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    id string
    The unique identifier of the cd_toolchain.
    toolchain_id str
    ID of the toolchain.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    id str
    The unique identifier of the cd_toolchain.
    toolchainId String
    ID of the toolchain.

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

    getCdToolchain Result

    The following output properties are available:

    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.
    Description string
    (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.
    Id string
    The unique identifier of the cd_toolchain.
    Location string
    (String) Toolchain region.
    Name string
    (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
    (Forces new resource, 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>
    (Array of Strings) Tags associated with the toolchain.
    ToolchainId string
    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.
    Description string
    (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.
    Id string
    The unique identifier of the cd_toolchain.
    Location string
    (String) Toolchain region.
    Name string
    (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
    (Forces new resource, 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
    (Array of Strings) Tags associated with the toolchain.
    ToolchainId string
    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.
    description String
    (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.
    id String
    The unique identifier of the cd_toolchain.
    location String
    (String) Toolchain region.
    name String
    (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
    (Forces new resource, 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>
    (Array of Strings) Tags associated with the toolchain.
    toolchainId String
    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.
    description string
    (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.
    id string
    The unique identifier of the cd_toolchain.
    location string
    (String) Toolchain region.
    name string
    (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
    (Forces new resource, 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[]
    (Array of Strings) Tags associated with the toolchain.
    toolchainId string
    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.
    description str
    (String) 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.
    id str
    The unique identifier of the cd_toolchain.
    location str
    (String) Toolchain region.
    name str
    (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-._ ])+$/.
    resource_group_id str
    (Forces new resource, 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 Sequence[str]
    (Array of Strings) Tags associated with the toolchain.
    toolchain_id str
    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.
    description String
    (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.
    id String
    The unique identifier of the cd_toolchain.
    location String
    (String) Toolchain region.
    name String
    (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
    (Forces new resource, 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>
    (Array of Strings) Tags associated with the toolchain.
    toolchainId String
    uiHref String
    (String) URL of a user-facing user interface for this toolchain.
    updatedAt String
    (String) Latest toolchain update timestamp.

    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