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

ibm.getEventStreamsSchemaGlobalRule

Explore with Pulumi AI

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

    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 esSchemaGlobalRule = esInstance.then(esInstance => ibm.getEventStreamsSchemaGlobalRule({
        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_schema_global_rule = ibm.get_event_streams_schema_global_rule(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.LookupEventStreamsSchemaGlobalRule(ctx, &ibm.LookupEventStreamsSchemaGlobalRuleArgs{
    			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 esSchemaGlobalRule = Ibm.GetEventStreamsSchemaGlobalRule.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.GetEventStreamsSchemaGlobalRuleArgs;
    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 esSchemaGlobalRule = IbmFunctions.getEventStreamsSchemaGlobalRule(GetEventStreamsSchemaGlobalRuleArgs.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}
      esSchemaGlobalRule:
        fn::invoke:
          function: ibm:getEventStreamsSchemaGlobalRule
          arguments:
            resourceInstanceId: ${esInstance.id}
    

    Using getEventStreamsSchemaGlobalRule

    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 getEventStreamsSchemaGlobalRule(args: GetEventStreamsSchemaGlobalRuleArgs, opts?: InvokeOptions): Promise<GetEventStreamsSchemaGlobalRuleResult>
    function getEventStreamsSchemaGlobalRuleOutput(args: GetEventStreamsSchemaGlobalRuleOutputArgs, opts?: InvokeOptions): Output<GetEventStreamsSchemaGlobalRuleResult>
    def get_event_streams_schema_global_rule(id: Optional[str] = None,
                                             resource_instance_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetEventStreamsSchemaGlobalRuleResult
    def get_event_streams_schema_global_rule_output(id: Optional[pulumi.Input[str]] = None,
                                             resource_instance_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetEventStreamsSchemaGlobalRuleResult]
    func LookupEventStreamsSchemaGlobalRule(ctx *Context, args *LookupEventStreamsSchemaGlobalRuleArgs, opts ...InvokeOption) (*LookupEventStreamsSchemaGlobalRuleResult, error)
    func LookupEventStreamsSchemaGlobalRuleOutput(ctx *Context, args *LookupEventStreamsSchemaGlobalRuleOutputArgs, opts ...InvokeOption) LookupEventStreamsSchemaGlobalRuleResultOutput

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

    public static class GetEventStreamsSchemaGlobalRule 
    {
        public static Task<GetEventStreamsSchemaGlobalRuleResult> InvokeAsync(GetEventStreamsSchemaGlobalRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetEventStreamsSchemaGlobalRuleResult> Invoke(GetEventStreamsSchemaGlobalRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEventStreamsSchemaGlobalRuleResult> getEventStreamsSchemaGlobalRule(GetEventStreamsSchemaGlobalRuleArgs args, InvokeOptions options)
    public static Output<GetEventStreamsSchemaGlobalRuleResult> getEventStreamsSchemaGlobalRule(GetEventStreamsSchemaGlobalRuleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getEventStreamsSchemaGlobalRule:getEventStreamsSchemaGlobalRule
      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 schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    ResourceInstanceId string
    The ID or CRN of the Event Streams service instance.
    Id string
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resourceInstanceId String
    The ID or CRN of the Event Streams service instance.
    id String
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resourceInstanceId string
    The ID or CRN of the Event Streams service instance.
    id string
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resource_instance_id str
    The ID or CRN of the Event Streams service instance.
    id str
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resourceInstanceId String
    The ID or CRN of the Event Streams service instance.
    id String
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.

    getEventStreamsSchemaGlobalRule Result

    The following output properties are available:

    Config string
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    Id string
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    ResourceInstanceId string
    Config string
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    Id string
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    ResourceInstanceId string
    config String
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    id String
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resourceInstanceId String
    config string
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    id string
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resourceInstanceId string
    config str
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    id str
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    resource_instance_id str
    config String
    (String) The value of the global compatibility rule in the instance; one of "NONE", "FULL", "FULL_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "BACKWARD", or "BACKWARD_TRANSITIVE".
    id String
    (String) The ID of the schema global compatibility rule in CRN format. This will be the CRN of the service instance, with resource type "schema-global-compatibility-rule". For example, crn:v1:bluemix:public:messagehub:us-south:a/6db1b0d0b5c54ee5c201552547febcd8:cb5a0252-8b8d-4390-b017-80b743d32839:schema-global-compatibility-rule:.
    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