ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getEnSubscriptionWebhook
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 webhookSubscription = ibm.getEnSubscriptionWebhook({
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
    subscriptionId: ibm_en_subscription_webhook.subscriptionwebhook.subscription_id,
});
import pulumi
import pulumi_ibm as ibm
webhook_subscription = ibm.get_en_subscription_webhook(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"],
    subscription_id=ibm_en_subscription_webhook["subscriptionwebhook"]["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.LookupEnSubscriptionWebhook(ctx, &ibm.LookupEnSubscriptionWebhookArgs{
			InstanceGuid:   ibm_resource_instance.En_terraform_test_resource.Guid,
			SubscriptionId: ibm_en_subscription_webhook.Subscriptionwebhook.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 webhookSubscription = Ibm.GetEnSubscriptionWebhook.Invoke(new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
        SubscriptionId = ibm_en_subscription_webhook.Subscriptionwebhook.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.GetEnSubscriptionWebhookArgs;
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 webhookSubscription = IbmFunctions.getEnSubscriptionWebhook(GetEnSubscriptionWebhookArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .subscriptionId(ibm_en_subscription_webhook.subscriptionwebhook().subscription_id())
            .build());
    }
}
variables:
  webhookSubscription:
    fn::invoke:
      function: ibm:getEnSubscriptionWebhook
      arguments:
        instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
        subscriptionId: ${ibm_en_subscription_webhook.subscriptionwebhook.subscription_id}
Using getEnSubscriptionWebhook
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 getEnSubscriptionWebhook(args: GetEnSubscriptionWebhookArgs, opts?: InvokeOptions): Promise<GetEnSubscriptionWebhookResult>
function getEnSubscriptionWebhookOutput(args: GetEnSubscriptionWebhookOutputArgs, opts?: InvokeOptions): Output<GetEnSubscriptionWebhookResult>def get_en_subscription_webhook(id: Optional[str] = None,
                                instance_guid: Optional[str] = None,
                                subscription_id: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetEnSubscriptionWebhookResult
def get_en_subscription_webhook_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[GetEnSubscriptionWebhookResult]func LookupEnSubscriptionWebhook(ctx *Context, args *LookupEnSubscriptionWebhookArgs, opts ...InvokeOption) (*LookupEnSubscriptionWebhookResult, error)
func LookupEnSubscriptionWebhookOutput(ctx *Context, args *LookupEnSubscriptionWebhookOutputArgs, opts ...InvokeOption) LookupEnSubscriptionWebhookResultOutput> Note: This function is named LookupEnSubscriptionWebhook in the Go SDK.
public static class GetEnSubscriptionWebhook 
{
    public static Task<GetEnSubscriptionWebhookResult> InvokeAsync(GetEnSubscriptionWebhookArgs args, InvokeOptions? opts = null)
    public static Output<GetEnSubscriptionWebhookResult> Invoke(GetEnSubscriptionWebhookInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnSubscriptionWebhookResult> getEnSubscriptionWebhook(GetEnSubscriptionWebhookArgs args, InvokeOptions options)
public static Output<GetEnSubscriptionWebhookResult> getEnSubscriptionWebhook(GetEnSubscriptionWebhookArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getEnSubscriptionWebhook:getEnSubscriptionWebhook
  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 webhook_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 webhook_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 webhook_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 webhook_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 webhook_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 webhook_subscription.
 
getEnSubscriptionWebhook Result
The following output properties are available:
- Attributes
List<Get
En Subscription Webhook Attribute>  - (Required, List)
 - Description string
 - (String) Subscription description.
 - Destination
Id string - (String) The destination ID.
 - Id string
 - The unique identifier of the webhook_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 Webhook Attribute  - (Required, List)
 - Description string
 - (String) Subscription description.
 - Destination
Id string - (String) The destination ID.
 - Id string
 - The unique identifier of the webhook_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 Webhook Attribute>  - (Required, List)
 - description String
 - (String) Subscription description.
 - destination
Id String - (String) The destination ID.
 - id String
 - The unique identifier of the webhook_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 Webhook Attribute[]  - (Required, List)
 - description string
 - (String) Subscription description.
 - destination
Id string - (String) The destination ID.
 - id string
 - The unique identifier of the webhook_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 Webhook Attribute]  - (Required, List)
 - description str
 - (String) Subscription description.
 - destination_
id str - (String) The destination ID.
 - id str
 - The unique identifier of the webhook_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 webhook_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
GetEnSubscriptionWebhookAttribute    
- Additional
Properties Dictionary<string, ImmutableArray<string>>  - Signing
Enabled bool - Template
Id stringNotification  - (String) The templete id for notification
 
- Additional
Properties map[string][]string - Signing
Enabled bool - Template
Id stringNotification  - (String) The templete id for notification
 
- additional
Properties Map<String,List<String>> - signing
Enabled Boolean - template
Id StringNotification  - (String) The templete id for notification
 
- additional
Properties {[key: string]: string[]} - signing
Enabled boolean - template
Id stringNotification  - (String) The templete id for notification
 
- additional_
properties Mapping[str, Sequence[str]] - signing_
enabled bool - template_
id_ strnotification  - (String) The templete id for notification
 
- additional
Properties Map<List<String>> - signing
Enabled Boolean - template
Id StringNotification  - (String) The templete id for notification
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.