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

ibm.getCdToolchains

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 cd_toolchains. 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 cdToolchains = ibm.getCdToolchains({
        name: "TestToolchainV2",
        resourceGroupId: "6a9a01f2cff54a7f966f803d92877123",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cd_toolchains = ibm.get_cd_toolchains(name="TestToolchainV2",
        resource_group_id="6a9a01f2cff54a7f966f803d92877123")
    
    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.GetCdToolchains(ctx, &ibm.GetCdToolchainsArgs{
    			Name:            pulumi.StringRef("TestToolchainV2"),
    			ResourceGroupId: "6a9a01f2cff54a7f966f803d92877123",
    		}, 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 cdToolchains = Ibm.GetCdToolchains.Invoke(new()
        {
            Name = "TestToolchainV2",
            ResourceGroupId = "6a9a01f2cff54a7f966f803d92877123",
        });
    
    });
    
    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.GetCdToolchainsArgs;
    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 cdToolchains = IbmFunctions.getCdToolchains(GetCdToolchainsArgs.builder()
                .name("TestToolchainV2")
                .resourceGroupId("6a9a01f2cff54a7f966f803d92877123")
                .build());
    
        }
    }
    
    variables:
      cdToolchains:
        fn::invoke:
          function: ibm:getCdToolchains
          arguments:
            name: TestToolchainV2
            resourceGroupId: 6a9a01f2cff54a7f966f803d92877123
    

    Using getCdToolchains

    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 getCdToolchains(args: GetCdToolchainsArgs, opts?: InvokeOptions): Promise<GetCdToolchainsResult>
    function getCdToolchainsOutput(args: GetCdToolchainsOutputArgs, opts?: InvokeOptions): Output<GetCdToolchainsResult>
    def get_cd_toolchains(id: Optional[str] = None,
                          name: Optional[str] = None,
                          resource_group_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCdToolchainsResult
    def get_cd_toolchains_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          resource_group_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCdToolchainsResult]
    func GetCdToolchains(ctx *Context, args *GetCdToolchainsArgs, opts ...InvokeOption) (*GetCdToolchainsResult, error)
    func GetCdToolchainsOutput(ctx *Context, args *GetCdToolchainsOutputArgs, opts ...InvokeOption) GetCdToolchainsResultOutput

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

    public static class GetCdToolchains 
    {
        public static Task<GetCdToolchainsResult> InvokeAsync(GetCdToolchainsArgs args, InvokeOptions? opts = null)
        public static Output<GetCdToolchainsResult> Invoke(GetCdToolchainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdToolchainsResult> getCdToolchains(GetCdToolchainsArgs args, InvokeOptions options)
    public static Output<GetCdToolchainsResult> getCdToolchains(GetCdToolchainsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCdToolchains:getCdToolchains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupId string
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    Id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    Name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    Id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    Name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    id String
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    name String
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    id str
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    name str
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    id String
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    name String
    Name of toolchain to look up.

    • 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-._ ])+$/.

    getCdToolchains Result

    The following output properties are available:

    Id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    Toolchains List<GetCdToolchainsToolchain>
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.
    Id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    Toolchains []GetCdToolchainsToolchain
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.
    id String
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    toolchains List<GetCdToolchainsToolchain>
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.
    id string
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    toolchains GetCdToolchainsToolchain[]
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.
    id str
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    toolchains Sequence[GetCdToolchainsToolchain]
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.
    id String
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    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}$/.
    toolchains List<Property Map>
    (List) Toolchain results returned from the collection.

    • Constraints: The maximum length is 200 items. The minimum length is 0 items. Nested schema for toolchains:
    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-._ ])+$/.

    Supporting Types

    GetCdToolchainsToolchain

    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    Location string
    (String) Toolchain region.
    Name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    Location string
    (String) Toolchain region.
    Name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    location String
    (String) Toolchain region.
    name String
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    location string
    (String) Toolchain region.
    name string
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    location str
    (String) Toolchain region.
    name str
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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
    (String) Toolchain ID.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$/.
    location String
    (String) Toolchain region.
    name String
    Name of toolchain to look up.

    • 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
    The resource group ID where the toolchains exist.

    • Constraints: The maximum length is 32 characters. The minimum length is 32 characters. The value must match regular expression /^[0-9a-f]{32}$/.
    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