1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEventStreamsMirroringConfig
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getEventStreamsMirroringConfig

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information about the mirroring config of an Event Streams service instance. This can only be performed on an Event Streams Enterprise plan service instance. For more information about the Event Streams mirroring, see Event Streams Mirroring.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const esInstance = ibm.getResourceInstance({
        name: "terraform-integration",
        resourceGroupId: data.ibm_resource_group.group.id,
    });
    const esMirroringConfig = esInstance.then(esInstance => ibm.getEventStreamsMirroringConfig({
        resourceInstanceId: esInstance.id,
    }));
    
    import pulumi
    import pulumi_ibm as ibm
    
    es_instance = ibm.get_resource_instance(name="terraform-integration",
        resource_group_id=data["ibm_resource_group"]["group"]["id"])
    es_mirroring_config = ibm.get_event_streams_mirroring_config(resource_instance_id=es_instance.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 {
    		esInstance, err := ibm.LookupResourceInstance(ctx, &ibm.LookupResourceInstanceArgs{
    			Name:            pulumi.StringRef("terraform-integration"),
    			ResourceGroupId: pulumi.StringRef(data.Ibm_resource_group.Group.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ibm.LookupEventStreamsMirroringConfig(ctx, &ibm.LookupEventStreamsMirroringConfigArgs{
    			ResourceInstanceId: esInstance.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 esInstance = Ibm.GetResourceInstance.Invoke(new()
        {
            Name = "terraform-integration",
            ResourceGroupId = data.Ibm_resource_group.Group.Id,
        });
    
        var esMirroringConfig = Ibm.GetEventStreamsMirroringConfig.Invoke(new()
        {
            ResourceInstanceId = esInstance.Apply(getResourceInstanceResult => getResourceInstanceResult.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.GetResourceInstanceArgs;
    import com.pulumi.ibm.inputs.GetEventStreamsMirroringConfigArgs;
    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 esInstance = IbmFunctions.getResourceInstance(GetResourceInstanceArgs.builder()
                .name("terraform-integration")
                .resourceGroupId(data.ibm_resource_group().group().id())
                .build());
    
            final var esMirroringConfig = IbmFunctions.getEventStreamsMirroringConfig(GetEventStreamsMirroringConfigArgs.builder()
                .resourceInstanceId(esInstance.applyValue(getResourceInstanceResult -> getResourceInstanceResult.id()))
                .build());
    
        }
    }
    
    variables:
      esInstance:
        fn::invoke:
          function: ibm:getResourceInstance
          arguments:
            name: terraform-integration
            resourceGroupId: ${data.ibm_resource_group.group.id}
      esMirroringConfig:
        fn::invoke:
          function: ibm:getEventStreamsMirroringConfig
          arguments:
            resourceInstanceId: ${esInstance.id}
    

    Using getEventStreamsMirroringConfig

    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 getEventStreamsMirroringConfig(args: GetEventStreamsMirroringConfigArgs, opts?: InvokeOptions): Promise<GetEventStreamsMirroringConfigResult>
    function getEventStreamsMirroringConfigOutput(args: GetEventStreamsMirroringConfigOutputArgs, opts?: InvokeOptions): Output<GetEventStreamsMirroringConfigResult>
    def get_event_streams_mirroring_config(id: Optional[str] = None,
                                           resource_instance_id: Optional[str] = None,
                                           opts: Optional[InvokeOptions] = None) -> GetEventStreamsMirroringConfigResult
    def get_event_streams_mirroring_config_output(id: Optional[pulumi.Input[str]] = None,
                                           resource_instance_id: Optional[pulumi.Input[str]] = None,
                                           opts: Optional[InvokeOptions] = None) -> Output[GetEventStreamsMirroringConfigResult]
    func LookupEventStreamsMirroringConfig(ctx *Context, args *LookupEventStreamsMirroringConfigArgs, opts ...InvokeOption) (*LookupEventStreamsMirroringConfigResult, error)
    func LookupEventStreamsMirroringConfigOutput(ctx *Context, args *LookupEventStreamsMirroringConfigOutputArgs, opts ...InvokeOption) LookupEventStreamsMirroringConfigResultOutput

    > Note: This function is named LookupEventStreamsMirroringConfig in the Go SDK.

    public static class GetEventStreamsMirroringConfig 
    {
        public static Task<GetEventStreamsMirroringConfigResult> InvokeAsync(GetEventStreamsMirroringConfigArgs args, InvokeOptions? opts = null)
        public static Output<GetEventStreamsMirroringConfigResult> Invoke(GetEventStreamsMirroringConfigInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventStreamsMirroringConfigResult> getEventStreamsMirroringConfig(GetEventStreamsMirroringConfigArgs args, InvokeOptions options)
    public static Output<GetEventStreamsMirroringConfigResult> getEventStreamsMirroringConfig(GetEventStreamsMirroringConfigArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getEventStreamsMirroringConfig:getEventStreamsMirroringConfig
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceInstanceId string
    The ID or CRN of the Event Streams service instance.
    Id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    ResourceInstanceId string
    The ID or CRN of the Event Streams service instance.
    Id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    resourceInstanceId String
    The ID or CRN of the Event Streams service instance.
    id String
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    resourceInstanceId string
    The ID or CRN of the Event Streams service instance.
    id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    resource_instance_id str
    The ID or CRN of the Event Streams service instance.
    id str
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    resourceInstanceId String
    The ID or CRN of the Event Streams service instance.
    id String
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.

    getEventStreamsMirroringConfig Result

    The following output properties are available:

    Id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    MirroringTopicPatterns List<string>
    (List of String) The current topic selection patterns in the Event Streams instance.
    ResourceInstanceId string
    Id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    MirroringTopicPatterns []string
    (List of String) The current topic selection patterns in the Event Streams instance.
    ResourceInstanceId string
    id String
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    mirroringTopicPatterns List<String>
    (List of String) The current topic selection patterns in the Event Streams instance.
    resourceInstanceId String
    id string
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    mirroringTopicPatterns string[]
    (List of String) The current topic selection patterns in the Event Streams instance.
    resourceInstanceId string
    id str
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    mirroring_topic_patterns Sequence[str]
    (List of String) The current topic selection patterns in the Event Streams instance.
    resource_instance_id str
    id String
    (String) The ID of the mirroring config in CRN format. For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:mirroring-config:.
    mirroringTopicPatterns List<String>
    (List of String) The current topic selection patterns in the Event Streams instance.
    resourceInstanceId String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud