1. Packages
  2. Ibm Provider
  3. API Docs
  4. getEventStreamsSchemaGlobalRule
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getEventStreamsSchemaGlobalRule

Explore with Pulumi AI

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,
}));
Copy
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)
Copy
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
	})
}
Copy
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),
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func LookupEventStreamsSchemaGlobalRule(ctx *Context, args *LookupEventStreamsSchemaGlobalRuleArgs, opts ...InvokeOption) (*LookupEventStreamsSchemaGlobalRuleResult, error)
func LookupEventStreamsSchemaGlobalRuleOutput(ctx *Context, args *LookupEventStreamsSchemaGlobalRuleOutputArgs, opts ...InvokeOption) LookupEventStreamsSchemaGlobalRuleResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEventStreamsSchemaGlobalRuleResult> getEventStreamsSchemaGlobalRule(GetEventStreamsSchemaGlobalRuleArgs args, InvokeOptions options)
public static Output<GetEventStreamsSchemaGlobalRuleResult> getEventStreamsSchemaGlobalRule(GetEventStreamsSchemaGlobalRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getEventStreamsSchemaGlobalRule:getEventStreamsSchemaGlobalRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceInstanceId This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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.