ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getEnSubscriptions
Explore with Pulumi AI
Provides a read-only data source for en_subscriptions. 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 enSubscriptions = ibm.getEnSubscriptions({
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
});
import pulumi
import pulumi_ibm as ibm
en_subscriptions = ibm.get_en_subscriptions(instance_guid=ibm_resource_instance["en_terraform_test_resource"]["guid"])
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.GetEnSubscriptions(ctx, &ibm.GetEnSubscriptionsArgs{
			InstanceGuid: ibm_resource_instance.En_terraform_test_resource.Guid,
		}, 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 enSubscriptions = Ibm.GetEnSubscriptions.Invoke(new()
    {
        InstanceGuid = ibm_resource_instance.En_terraform_test_resource.Guid,
    });
});
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.GetEnSubscriptionsArgs;
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 enSubscriptions = IbmFunctions.getEnSubscriptions(GetEnSubscriptionsArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .build());
    }
}
variables:
  enSubscriptions:
    fn::invoke:
      function: ibm:getEnSubscriptions
      arguments:
        instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
Using getEnSubscriptions
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 getEnSubscriptions(args: GetEnSubscriptionsArgs, opts?: InvokeOptions): Promise<GetEnSubscriptionsResult>
function getEnSubscriptionsOutput(args: GetEnSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetEnSubscriptionsResult>def get_en_subscriptions(id: Optional[str] = None,
                         instance_guid: Optional[str] = None,
                         search_key: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetEnSubscriptionsResult
def get_en_subscriptions_output(id: Optional[pulumi.Input[str]] = None,
                         instance_guid: Optional[pulumi.Input[str]] = None,
                         search_key: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetEnSubscriptionsResult]func GetEnSubscriptions(ctx *Context, args *GetEnSubscriptionsArgs, opts ...InvokeOption) (*GetEnSubscriptionsResult, error)
func GetEnSubscriptionsOutput(ctx *Context, args *GetEnSubscriptionsOutputArgs, opts ...InvokeOption) GetEnSubscriptionsResultOutput> Note: This function is named GetEnSubscriptions in the Go SDK.
public static class GetEnSubscriptions 
{
    public static Task<GetEnSubscriptionsResult> InvokeAsync(GetEnSubscriptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetEnSubscriptionsResult> Invoke(GetEnSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnSubscriptionsResult> getEnSubscriptions(GetEnSubscriptionsArgs args, InvokeOptions options)
public static Output<GetEnSubscriptionsResult> getEnSubscriptions(GetEnSubscriptionsArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getEnSubscriptions:getEnSubscriptions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Id string
 - (Required, String) ID of the subscription.
 - Search
Key string - Filter the subscription by name.
 
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Id string
 - (Required, String) ID of the subscription.
 - Search
Key string - Filter the subscription by name.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - id String
 - (Required, String) ID of the subscription.
 - search
Key String - Filter the subscription by name.
 
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - id string
 - (Required, String) ID of the subscription.
 - search
Key string - Filter the subscription by name.
 
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
 - id str
 - (Required, String) ID of the subscription.
 - search_
key str - Filter the subscription by name.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - id String
 - (Required, String) ID of the subscription.
 - search
Key String - Filter the subscription by name.
 
getEnSubscriptions Result
The following output properties are available:
- Id string
 - (Required, String) ID of the subscription.
 - Instance
Guid string - Subscriptions
List<Get
En Subscriptions Subscription>  - (Required, List) List of subscriptions.
 - Total
Count double - (Required, Integer) Number of subscriptions.
 - Search
Key string 
- Id string
 - (Required, String) ID of the subscription.
 - Instance
Guid string - Subscriptions
[]Get
En Subscriptions Subscription  - (Required, List) List of subscriptions.
 - Total
Count float64 - (Required, Integer) Number of subscriptions.
 - Search
Key string 
- id String
 - (Required, String) ID of the subscription.
 - instance
Guid String - subscriptions
List<Get
En Subscriptions Subscription>  - (Required, List) List of subscriptions.
 - total
Count Double - (Required, Integer) Number of subscriptions.
 - search
Key String 
- id string
 - (Required, String) ID of the subscription.
 - instance
Guid string - subscriptions
Get
En Subscriptions Subscription[]  - (Required, List) List of subscriptions.
 - total
Count number - (Required, Integer) Number of subscriptions.
 - search
Key string 
- id str
 - (Required, String) ID of the subscription.
 - instance_
guid str - subscriptions
Sequence[Get
En Subscriptions Subscription]  - (Required, List) List of subscriptions.
 - total_
count float - (Required, Integer) Number of subscriptions.
 - search_
key str 
- id String
 - (Required, String) ID of the subscription.
 - instance
Guid String - subscriptions List<Property Map>
 - (Required, List) List of subscriptions.
 - total
Count Number - (Required, Integer) Number of subscriptions.
 - search
Key String 
Supporting Types
GetEnSubscriptionsSubscription   
- Description string
 - (Required, String) Description of the subscription.
 - Destination
Id string - (Required, String) ID of the destination.
 - Destination
Name string - (Required, String) Name of the destination.
 - Destination
Type string - (Required, String) The type of destination.
 - Id string
 - (Required, String) ID of the subscription.
 - Name string
 - (Required, String) Name of the subscription.
 - Topic
Id string - (Required, String) ID of the topic.
 - Topic
Name string - (Required, String) Name of the topic.
 - Updated
At string - (Required, String) Last updated time of the subscription.
 
- Description string
 - (Required, String) Description of the subscription.
 - Destination
Id string - (Required, String) ID of the destination.
 - Destination
Name string - (Required, String) Name of the destination.
 - Destination
Type string - (Required, String) The type of destination.
 - Id string
 - (Required, String) ID of the subscription.
 - Name string
 - (Required, String) Name of the subscription.
 - Topic
Id string - (Required, String) ID of the topic.
 - Topic
Name string - (Required, String) Name of the topic.
 - Updated
At string - (Required, String) Last updated time of the subscription.
 
- description String
 - (Required, String) Description of the subscription.
 - destination
Id String - (Required, String) ID of the destination.
 - destination
Name String - (Required, String) Name of the destination.
 - destination
Type String - (Required, String) The type of destination.
 - id String
 - (Required, String) ID of the subscription.
 - name String
 - (Required, String) Name of the subscription.
 - topic
Id String - (Required, String) ID of the topic.
 - topic
Name String - (Required, String) Name of the topic.
 - updated
At String - (Required, String) Last updated time of the subscription.
 
- description string
 - (Required, String) Description of the subscription.
 - destination
Id string - (Required, String) ID of the destination.
 - destination
Name string - (Required, String) Name of the destination.
 - destination
Type string - (Required, String) The type of destination.
 - id string
 - (Required, String) ID of the subscription.
 - name string
 - (Required, String) Name of the subscription.
 - topic
Id string - (Required, String) ID of the topic.
 - topic
Name string - (Required, String) Name of the topic.
 - updated
At string - (Required, String) Last updated time of the subscription.
 
- description str
 - (Required, String) Description of the subscription.
 - destination_
id str - (Required, String) ID of the destination.
 - destination_
name str - (Required, String) Name of the destination.
 - destination_
type str - (Required, String) The type of destination.
 - id str
 - (Required, String) ID of the subscription.
 - name str
 - (Required, String) Name of the subscription.
 - topic_
id str - (Required, String) ID of the topic.
 - topic_
name str - (Required, String) Name of the topic.
 - updated_
at str - (Required, String) Last updated time of the subscription.
 
- description String
 - (Required, String) Description of the subscription.
 - destination
Id String - (Required, String) ID of the destination.
 - destination
Name String - (Required, String) Name of the destination.
 - destination
Type String - (Required, String) The type of destination.
 - id String
 - (Required, String) ID of the subscription.
 - name String
 - (Required, String) Name of the subscription.
 - topic
Id String - (Required, String) ID of the topic.
 - topic
Name String - (Required, String) Name of the topic.
 - updated
At String - (Required, String) Last updated time of the subscription.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.