ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getCdToolchainToolSlack
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a cd_toolchain_tool_slack. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
See the tool integration page for more information.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const cdToolchainToolSlack = ibm.getCdToolchainToolSlack({
toolId: "9603dcd4-3c86-44f8-8d0a-9427369878cf",
toolchainId: data.ibm_cd_toolchain.cd_toolchain.id,
});
import pulumi
import pulumi_ibm as ibm
cd_toolchain_tool_slack = ibm.get_cd_toolchain_tool_slack(tool_id="9603dcd4-3c86-44f8-8d0a-9427369878cf",
toolchain_id=data["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.LookupCdToolchainToolSlack(ctx, &ibm.LookupCdToolchainToolSlackArgs{
ToolId: "9603dcd4-3c86-44f8-8d0a-9427369878cf",
ToolchainId: data.Ibm_cd_toolchain.Cd_toolchain.Id,
}, 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 cdToolchainToolSlack = Ibm.GetCdToolchainToolSlack.Invoke(new()
{
ToolId = "9603dcd4-3c86-44f8-8d0a-9427369878cf",
ToolchainId = data.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.IbmFunctions;
import com.pulumi.ibm.inputs.GetCdToolchainToolSlackArgs;
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 cdToolchainToolSlack = IbmFunctions.getCdToolchainToolSlack(GetCdToolchainToolSlackArgs.builder()
.toolId("9603dcd4-3c86-44f8-8d0a-9427369878cf")
.toolchainId(data.ibm_cd_toolchain().cd_toolchain().id())
.build());
}
}
variables:
cdToolchainToolSlack:
fn::invoke:
function: ibm:getCdToolchainToolSlack
arguments:
toolId: 9603dcd4-3c86-44f8-8d0a-9427369878cf
toolchainId: ${data.ibm_cd_toolchain.cd_toolchain.id}
Using getCdToolchainToolSlack
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 getCdToolchainToolSlack(args: GetCdToolchainToolSlackArgs, opts?: InvokeOptions): Promise<GetCdToolchainToolSlackResult>
function getCdToolchainToolSlackOutput(args: GetCdToolchainToolSlackOutputArgs, opts?: InvokeOptions): Output<GetCdToolchainToolSlackResult>
def get_cd_toolchain_tool_slack(id: Optional[str] = None,
tool_id: Optional[str] = None,
toolchain_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCdToolchainToolSlackResult
def get_cd_toolchain_tool_slack_output(id: Optional[pulumi.Input[str]] = None,
tool_id: Optional[pulumi.Input[str]] = None,
toolchain_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCdToolchainToolSlackResult]
func LookupCdToolchainToolSlack(ctx *Context, args *LookupCdToolchainToolSlackArgs, opts ...InvokeOption) (*LookupCdToolchainToolSlackResult, error)
func LookupCdToolchainToolSlackOutput(ctx *Context, args *LookupCdToolchainToolSlackOutputArgs, opts ...InvokeOption) LookupCdToolchainToolSlackResultOutput
> Note: This function is named LookupCdToolchainToolSlack
in the Go SDK.
public static class GetCdToolchainToolSlack
{
public static Task<GetCdToolchainToolSlackResult> InvokeAsync(GetCdToolchainToolSlackArgs args, InvokeOptions? opts = null)
public static Output<GetCdToolchainToolSlackResult> Invoke(GetCdToolchainToolSlackInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCdToolchainToolSlackResult> getCdToolchainToolSlack(GetCdToolchainToolSlackArgs args, InvokeOptions options)
public static Output<GetCdToolchainToolSlackResult> getCdToolchainToolSlack(GetCdToolchainToolSlackArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getCdToolchainToolSlack:getCdToolchainToolSlack
arguments:
# arguments dictionary
The following arguments are supported:
- Tool
Id string - ID of the tool bound to 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
- 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_tool_slack.
- Tool
Id string - ID of the tool bound to 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
- 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_tool_slack.
- tool
Id String - ID of the tool bound to 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
- 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_tool_slack.
- tool
Id string - ID of the tool bound to 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
- 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_tool_slack.
- tool_
id str - ID of the tool bound to 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
- 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_tool_slack.
- tool
Id String - ID of the tool bound to 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
- 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_tool_slack.
getCdToolchainToolSlack Result
The following output properties are available:
- Crn string
- (String) Tool CRN.
- Href string
- (String) URI representing the tool.
- Id string
- The unique identifier of the cd_toolchain_tool_slack.
- Name string
- (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
List<Get
Cd Toolchain Tool Slack Parameter> - (List) 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<Get
Cd Toolchain Tool Slack 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 - Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Toolchain
Id string - Updated
At string - (String) Latest tool update timestamp.
- Crn string
- (String) Tool CRN.
- Href string
- (String) URI representing the tool.
- Id string
- The unique identifier of the cd_toolchain_tool_slack.
- Name string
- (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
[]Get
Cd Toolchain Tool Slack Parameter - (List) 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
[]Get
Cd Toolchain Tool Slack 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 - Toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- Toolchain
Id string - Updated
At string - (String) Latest tool update timestamp.
- crn String
- (String) Tool CRN.
- href String
- (String) URI representing the tool.
- id String
- The unique identifier of the cd_toolchain_tool_slack.
- name String
- (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
List<Get
Cd Toolchain Tool Slack Parameter> - (List) 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<Get
Cd Toolchain Tool Slack 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 - toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id String - updated
At String - (String) Latest tool update timestamp.
- crn string
- (String) Tool CRN.
- href string
- (String) URI representing the tool.
- id string
- The unique identifier of the cd_toolchain_tool_slack.
- name string
- (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
Get
Cd Toolchain Tool Slack Parameter[] - (List) 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
Get
Cd Toolchain Tool Slack 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 - toolchain
Crn string - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id string - updated
At string - (String) Latest tool update timestamp.
- crn str
- (String) Tool CRN.
- href str
- (String) URI representing the tool.
- id str
- The unique identifier of the cd_toolchain_tool_slack.
- name str
- (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
Sequence[Get
Cd Toolchain Tool Slack Parameter] - (List) 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[Get
Cd Toolchain Tool Slack 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 - toolchain_
crn str - (String) CRN of toolchain which the tool is bound to.
- toolchain_
id str - updated_
at str - (String) Latest tool update timestamp.
- crn String
- (String) Tool CRN.
- href String
- (String) URI representing the tool.
- id String
- The unique identifier of the cd_toolchain_tool_slack.
- name String
- (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 List<Property Map>
- (List) 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 - toolchain
Crn String - (String) CRN of toolchain which the tool is bound to.
- toolchain
Id String - updated
At String - (String) Latest tool update timestamp.
Supporting Types
GetCdToolchainToolSlackParameter
- Channel
Name string - (String) The Slack channel that notifications will be posted to.
- Pipeline
Fail bool - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Pipeline
Start bool - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Pipeline
Success bool - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Team
Name string - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- Toolchain
Bind bool - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Toolchain
Unbind bool - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Webhook string
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
- Channel
Name string - (String) The Slack channel that notifications will be posted to.
- Pipeline
Fail bool - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Pipeline
Start bool - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Pipeline
Success bool - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Team
Name string - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- Toolchain
Bind bool - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Toolchain
Unbind bool - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- Webhook string
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
- channel
Name String - (String) The Slack channel that notifications will be posted to.
- pipeline
Fail Boolean - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Start Boolean - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Success Boolean - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- team
Name String - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- toolchain
Bind Boolean - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- toolchain
Unbind Boolean - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- webhook String
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
- channel
Name string - (String) The Slack channel that notifications will be posted to.
- pipeline
Fail boolean - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Start boolean - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Success boolean - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- team
Name string - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- toolchain
Bind boolean - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- toolchain
Unbind boolean - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- webhook string
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
- channel_
name str - (String) The Slack channel that notifications will be posted to.
- pipeline_
fail bool - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline_
start bool - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline_
success bool - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- team_
name str - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- toolchain_
bind bool - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- toolchain_
unbind bool - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- webhook str
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
- channel
Name String - (String) The Slack channel that notifications will be posted to.
- pipeline
Fail Boolean - (Boolean) Generate
pipeline failed
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Start Boolean - (Boolean) Generate
pipeline start
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- pipeline
Success Boolean - (Boolean) Generate
pipeline succeeded
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- team
Name String - (String) The Slack team name, which is the word or phrase before .slack.com in the team URL.
- toolchain
Bind Boolean - (Boolean) Generate
tool added to toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- toolchain
Unbind Boolean - (Boolean) Generate
tool removed from toolchain
notifications.- Constraints: The default value is
true
.
- Constraints: The default value is
- webhook String
- (String) The incoming webhook used by Slack to receive events. You can use a toolchain secret reference for this parameter. For more information, see Protecting your sensitive data in Continuous Delivery.
GetCdToolchainToolSlackReferent
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.