ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getEnSubscriptionSlack
Explore with Pulumi AI
Provides a read-only data source for subscription. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const slackSubscription = ibm.getEnSubscriptionSlack({
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    subscriptionId: ibm_en_subscription_slack.subscriptionslack.subscription_id,
});
import pulumi
import pulumi_ibm as ibm
slack_subscription = ibm.get_en_subscription_slack(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    subscription_id=ibm_en_subscription_slack["subscriptionslack"]["subscription_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.LookupEnSubscriptionSlack(ctx, &ibm.LookupEnSubscriptionSlackArgs{
			InstanceGuid:   ibm_resource_instance.En_terraform_test_resource.Guid,
			SubscriptionId: ibm_en_subscription_slack.Subscriptionslack.Subscription_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 slackSubscription = Ibm.GetEnSubscriptionSlack.Invoke(new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        SubscriptionId = ibm_en_subscription_slack.Subscriptionslack.Subscription_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.GetEnSubscriptionSlackArgs;
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 slackSubscription = IbmFunctions.getEnSubscriptionSlack(GetEnSubscriptionSlackArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .subscriptionId(ibm_en_subscription_slack.subscriptionslack().subscription_id())
            .build());
    }
}
variables:
  slackSubscription:
    fn::invoke:
      function: ibm:getEnSubscriptionSlack
      arguments:
        instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
        subscriptionId: ${ibm_en_subscription_slack.subscriptionslack.subscription_id}
Using getEnSubscriptionSlack
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 getEnSubscriptionSlack(args: GetEnSubscriptionSlackArgs, opts?: InvokeOptions): Promise<GetEnSubscriptionSlackResult>
function getEnSubscriptionSlackOutput(args: GetEnSubscriptionSlackOutputArgs, opts?: InvokeOptions): Output<GetEnSubscriptionSlackResult>def get_en_subscription_slack(id: Optional[str] = None,
                              instance_guid: Optional[str] = None,
                              subscription_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEnSubscriptionSlackResult
def get_en_subscription_slack_output(id: Optional[pulumi.Input[str]] = None,
                              instance_guid: Optional[pulumi.Input[str]] = None,
                              subscription_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEnSubscriptionSlackResult]func LookupEnSubscriptionSlack(ctx *Context, args *LookupEnSubscriptionSlackArgs, opts ...InvokeOption) (*LookupEnSubscriptionSlackResult, error)
func LookupEnSubscriptionSlackOutput(ctx *Context, args *LookupEnSubscriptionSlackOutputArgs, opts ...InvokeOption) LookupEnSubscriptionSlackResultOutput> Note: This function is named LookupEnSubscriptionSlack in the Go SDK.
public static class GetEnSubscriptionSlack 
{
    public static Task<GetEnSubscriptionSlackResult> InvokeAsync(GetEnSubscriptionSlackArgs args, InvokeOptions? opts = null)
    public static Output<GetEnSubscriptionSlackResult> Invoke(GetEnSubscriptionSlackInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnSubscriptionSlackResult> getEnSubscriptionSlack(GetEnSubscriptionSlackArgs args, InvokeOptions options)
public static Output<GetEnSubscriptionSlackResult> getEnSubscriptionSlack(GetEnSubscriptionSlackArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getEnSubscriptionSlack:getEnSubscriptionSlack
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Subscription
Id string - Unique identifier for Subscription.
 - Id string
 - The unique identifier of the slack_subscription.
 
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Subscription
Id string - Unique identifier for Subscription.
 - Id string
 - The unique identifier of the slack_subscription.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - subscription
Id String - Unique identifier for Subscription.
 - id String
 - The unique identifier of the slack_subscription.
 
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - subscription
Id string - Unique identifier for Subscription.
 - id string
 - The unique identifier of the slack_subscription.
 
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
 - subscription_
id str - Unique identifier for Subscription.
 - id str
 - The unique identifier of the slack_subscription.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - subscription
Id String - Unique identifier for Subscription.
 - id String
 - The unique identifier of the slack_subscription.
 
getEnSubscriptionSlack Result
The following output properties are available:
- Attributes
List<Get
En Subscription Slack Attribute>  - (Required, List)
 - Description string
 - (String) Subscription description.
 - Destination
Id string - (String) The destination ID.
 - Id string
 - The unique identifier of the slack_subscription.
 - Instance
Guid string - Name string
 - (String) Subscription name.
 - Subscription
Id string - Topic
Id string - (String) Topic ID.
 - Updated
At string - (String) Last updated time.
 
- Attributes
[]Get
En Subscription Slack Attribute  - (Required, List)
 - Description string
 - (String) Subscription description.
 - Destination
Id string - (String) The destination ID.
 - Id string
 - The unique identifier of the slack_subscription.
 - Instance
Guid string - Name string
 - (String) Subscription name.
 - Subscription
Id string - Topic
Id string - (String) Topic ID.
 - Updated
At string - (String) Last updated time.
 
- attributes
List<Get
En Subscription Slack Attribute>  - (Required, List)
 - description String
 - (String) Subscription description.
 - destination
Id String - (String) The destination ID.
 - id String
 - The unique identifier of the slack_subscription.
 - instance
Guid String - name String
 - (String) Subscription name.
 - subscription
Id String - topic
Id String - (String) Topic ID.
 - updated
At String - (String) Last updated time.
 
- attributes
Get
En Subscription Slack Attribute[]  - (Required, List)
 - description string
 - (String) Subscription description.
 - destination
Id string - (String) The destination ID.
 - id string
 - The unique identifier of the slack_subscription.
 - instance
Guid string - name string
 - (String) Subscription name.
 - subscription
Id string - topic
Id string - (String) Topic ID.
 - updated
At string - (String) Last updated time.
 
- attributes
Sequence[Get
En Subscription Slack Attribute]  - (Required, List)
 - description str
 - (String) Subscription description.
 - destination_
id str - (String) The destination ID.
 - id str
 - The unique identifier of the slack_subscription.
 - instance_
guid str - name str
 - (String) Subscription name.
 - subscription_
id str - topic_
id str - (String) Topic ID.
 - updated_
at str - (String) Last updated time.
 
- attributes List<Property Map>
 - (Required, List)
 - description String
 - (String) Subscription description.
 - destination
Id String - (String) The destination ID.
 - id String
 - The unique identifier of the slack_subscription.
 - instance
Guid String - name String
 - (String) Subscription name.
 - subscription
Id String - topic
Id String - (String) Topic ID.
 - updated
At String - (String) Last updated time.
 
Supporting Types
GetEnSubscriptionSlackAttribute    
- Attachment
Color string - (String) The color code for slack attachment .
 - Channels
List<Get
En Subscription Slack Attribute Channel>  - (List) List of channels
 - Template
Id stringNotification  - (String) The templete id for notification
 
- Attachment
Color string - (String) The color code for slack attachment .
 - Channels
[]Get
En Subscription Slack Attribute Channel  - (List) List of channels
 - Template
Id stringNotification  - (String) The templete id for notification
 
- attachment
Color String - (String) The color code for slack attachment .
 - channels
List<Get
En Subscription Slack Attribute Channel>  - (List) List of channels
 - template
Id StringNotification  - (String) The templete id for notification
 
- attachment
Color string - (String) The color code for slack attachment .
 - channels
Get
En Subscription Slack Attribute Channel[]  - (List) List of channels
 - template
Id stringNotification  - (String) The templete id for notification
 
- attachment_
color str - (String) The color code for slack attachment .
 - channels
Sequence[Get
En Subscription Slack Attribute Channel]  - (List) List of channels
 - template_
id_ strnotification  - (String) The templete id for notification
 
- attachment
Color String - (String) The color code for slack attachment .
 - channels List<Property Map>
 - (List) List of channels
 - template
Id StringNotification  - (String) The templete id for notification
 
GetEnSubscriptionSlackAttributeChannel     
- Id string
 - The unique identifier of the slack_subscription.
 
- Id string
 - The unique identifier of the slack_subscription.
 
- id String
 - The unique identifier of the slack_subscription.
 
- id string
 - The unique identifier of the slack_subscription.
 
- id str
 - The unique identifier of the slack_subscription.
 
- id String
 - The unique identifier of the slack_subscription.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.