ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCdToolchain
Explore with Pulumi AI
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:
- Toolchain
Id string - ID of the toolchain.
- 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
- Id string
- The unique identifier of the cd_toolchain.
- Toolchain
Id string - ID of the toolchain.
- 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
- Id string
- The unique identifier of the cd_toolchain.
- toolchain
Id String - ID of the toolchain.
- 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
- id String
- The unique identifier of the cd_toolchain.
- toolchain
Id string - ID of the toolchain.
- 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
- 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 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
- id str
- The unique identifier of the cd_toolchain.
- toolchain
Id String - ID of the toolchain.
- 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
- id String
- The unique identifier of the cd_toolchain.
getCdToolchain Result
The following output properties are available:
- Account
Id string - (String) Account ID where toolchain can be found.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Resource
Group stringId - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<string>
- (Array of Strings) Tags associated with the toolchain.
- Toolchain
Id string - Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- Account
Id string - (String) Account ID where toolchain can be found.
- Created
At string - (String) Toolchain creation timestamp.
- Created
By 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- Resource
Group stringId - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- []string
- (Array of Strings) Tags associated with the toolchain.
- Toolchain
Id string - Ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- Updated
At string - (String) Latest toolchain update timestamp.
- account
Id String - (String) Account ID where toolchain can be found.
- created
At String - (String) Toolchain creation timestamp.
- created
By 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group StringId - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<String>
- (Array of Strings) Tags associated with the toolchain.
- toolchain
Id String - ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At String - (String) Latest toolchain update timestamp.
- account
Id string - (String) Account ID where toolchain can be found.
- created
At string - (String) Toolchain creation timestamp.
- created
By 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group stringId - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- string[]
- (Array of Strings) Tags associated with the toolchain.
- toolchain
Id string - ui
Href string - (String) URL of a user-facing user interface for this toolchain.
- updated
At 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource_
group_ strid - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- 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.
- account
Id String - (String) Account ID where toolchain can be found.
- created
At String - (String) Toolchain creation timestamp.
- created
By 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 is0
characters. The value must match regular expression/^(.*?)$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^([^\\x00-\\x7F]|[a-zA-Z0-9-._ ])+$/
.
- Constraints: The maximum length is
- resource
Group StringId - (Forces new resource, String) Resource group where the toolchain is located.
- Constraints: The maximum length is
32
characters. The minimum length is32
characters. The value must match regular expression/^[0-9a-f]{32}$/
.
- Constraints: The maximum length is
- List<String>
- (Array of Strings) Tags associated with the toolchain.
- toolchain
Id String - ui
Href String - (String) URL of a user-facing user interface for this toolchain.
- updated
At 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.