ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud
ibm.getEnTopics
Explore with Pulumi AI
Provides a read-only data source for topics. 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 enTopics = ibm.getEnTopics({
    instanceGuid: ibm_resource_instance.en_terraform_test_resource.guid,
});
import pulumi
import pulumi_ibm as ibm
en_topics = ibm.get_en_topics(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.GetEnTopics(ctx, &ibm.GetEnTopicsArgs{
			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 enTopics = Ibm.GetEnTopics.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.GetEnTopicsArgs;
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 enTopics = IbmFunctions.getEnTopics(GetEnTopicsArgs.builder()
            .instanceGuid(ibm_resource_instance.en_terraform_test_resource().guid())
            .build());
    }
}
variables:
  enTopics:
    fn::invoke:
      function: ibm:getEnTopics
      arguments:
        instanceGuid: ${ibm_resource_instance.en_terraform_test_resource.guid}
Using getEnTopics
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 getEnTopics(args: GetEnTopicsArgs, opts?: InvokeOptions): Promise<GetEnTopicsResult>
function getEnTopicsOutput(args: GetEnTopicsOutputArgs, opts?: InvokeOptions): Output<GetEnTopicsResult>def get_en_topics(id: Optional[str] = None,
                  instance_guid: Optional[str] = None,
                  search_key: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetEnTopicsResult
def get_en_topics_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[GetEnTopicsResult]func GetEnTopics(ctx *Context, args *GetEnTopicsArgs, opts ...InvokeOption) (*GetEnTopicsResult, error)
func GetEnTopicsOutput(ctx *Context, args *GetEnTopicsOutputArgs, opts ...InvokeOption) GetEnTopicsResultOutput> Note: This function is named GetEnTopics in the Go SDK.
public static class GetEnTopics 
{
    public static Task<GetEnTopicsResult> InvokeAsync(GetEnTopicsArgs args, InvokeOptions? opts = null)
    public static Output<GetEnTopicsResult> Invoke(GetEnTopicsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnTopicsResult> getEnTopics(GetEnTopicsArgs args, InvokeOptions options)
public static Output<GetEnTopicsResult> getEnTopics(GetEnTopicsArgs args, InvokeOptions options)
fn::invoke:
  function: ibm:index/getEnTopics:getEnTopics
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Id string
 - (String) Autogenerated topic ID.
 - Search
Key string - Filter the topic by name.
 
- Instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - Id string
 - (String) Autogenerated topic ID.
 - Search
Key string - Filter the topic by name.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - id String
 - (String) Autogenerated topic ID.
 - search
Key String - Filter the topic by name.
 
- instance
Guid string - Unique identifier for IBM Cloud Event Notifications instance.
 - id string
 - (String) Autogenerated topic ID.
 - search
Key string - Filter the topic by name.
 
- instance_
guid str - Unique identifier for IBM Cloud Event Notifications instance.
 - id str
 - (String) Autogenerated topic ID.
 - search_
key str - Filter the topic by name.
 
- instance
Guid String - Unique identifier for IBM Cloud Event Notifications instance.
 - id String
 - (String) Autogenerated topic ID.
 - search
Key String - Filter the topic by name.
 
getEnTopics Result
The following output properties are available:
- Id string
 - (String) Autogenerated topic ID.
 - Instance
Guid string - Topics
List<Get
En Topics Topic>  - (List) List of topics.
 - Total
Count double - (Integer) Number of topics.
 - Search
Key string 
- Id string
 - (String) Autogenerated topic ID.
 - Instance
Guid string - Topics
[]Get
En Topics Topic  - (List) List of topics.
 - Total
Count float64 - (Integer) Number of topics.
 - Search
Key string 
- id String
 - (String) Autogenerated topic ID.
 - instance
Guid String - topics
List<Get
En Topics Topic>  - (List) List of topics.
 - total
Count Double - (Integer) Number of topics.
 - search
Key String 
- id string
 - (String) Autogenerated topic ID.
 - instance
Guid string - topics
Get
En Topics Topic[]  - (List) List of topics.
 - total
Count number - (Integer) Number of topics.
 - search
Key string 
- id str
 - (String) Autogenerated topic ID.
 - instance_
guid str - topics
Sequence[Get
En Topics Topic]  - (List) List of topics.
 - total_
count float - (Integer) Number of topics.
 - search_
key str 
- id String
 - (String) Autogenerated topic ID.
 - instance
Guid String - topics List<Property Map>
 - (List) List of topics.
 - total
Count Number - (Integer) Number of topics.
 - search
Key String 
Supporting Types
GetEnTopicsTopic   
- Description string
 - (String) Description of the topic.
 - Id string
 - (String) Autogenerated topic ID.
 - Name string
 - (String) Name of the topic.
 - Source
Count double - (Integer) Number of sources.
 - Sources
Names List<string> - Subscription
Count double - (Integer) Number of subscriptions.
 
- Description string
 - (String) Description of the topic.
 - Id string
 - (String) Autogenerated topic ID.
 - Name string
 - (String) Name of the topic.
 - Source
Count float64 - (Integer) Number of sources.
 - Sources
Names []string - Subscription
Count float64 - (Integer) Number of subscriptions.
 
- description String
 - (String) Description of the topic.
 - id String
 - (String) Autogenerated topic ID.
 - name String
 - (String) Name of the topic.
 - source
Count Double - (Integer) Number of sources.
 - sources
Names List<String> - subscription
Count Double - (Integer) Number of subscriptions.
 
- description string
 - (String) Description of the topic.
 - id string
 - (String) Autogenerated topic ID.
 - name string
 - (String) Name of the topic.
 - source
Count number - (Integer) Number of sources.
 - sources
Names string[] - subscription
Count number - (Integer) Number of subscriptions.
 
- description str
 - (String) Description of the topic.
 - id str
 - (String) Autogenerated topic ID.
 - name str
 - (String) Name of the topic.
 - source_
count float - (Integer) Number of sources.
 - sources_
names Sequence[str] - subscription_
count float - (Integer) Number of subscriptions.
 
- description String
 - (String) Description of the topic.
 - id String
 - (String) Autogenerated topic ID.
 - name String
 - (String) Name of the topic.
 - source
Count Number - (Integer) Number of sources.
 - sources
Names List<String> - subscription
Count Number - (Integer) Number of subscriptions.
 
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.