1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GoldenGate
  5. getMessages
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.GoldenGate.getMessages

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Messages in Oracle Cloud Infrastructure Golden Gate service.

    Lists the DeploymentMessages for a deployment. The sorting order is not important. By default first will be Upgrade message, next Exception message and then Storage Utilization message.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testMessages = oci.GoldenGate.getMessages({
        deploymentId: testDeployment.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_messages = oci.GoldenGate.get_messages(deployment_id=test_deployment["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/GoldenGate"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := GoldenGate.GetMessages(ctx, &goldengate.GetMessagesArgs{
    			DeploymentId: testDeployment.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testMessages = Oci.GoldenGate.GetMessages.Invoke(new()
        {
            DeploymentId = testDeployment.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.GoldenGate.GoldenGateFunctions;
    import com.pulumi.oci.GoldenGate.inputs.GetMessagesArgs;
    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 testMessages = GoldenGateFunctions.getMessages(GetMessagesArgs.builder()
                .deploymentId(testDeployment.id())
                .build());
    
        }
    }
    
    variables:
      testMessages:
        fn::invoke:
          Function: oci:GoldenGate:getMessages
          Arguments:
            deploymentId: ${testDeployment.id}
    

    Using getMessages

    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 getMessages(args: GetMessagesArgs, opts?: InvokeOptions): Promise<GetMessagesResult>
    function getMessagesOutput(args: GetMessagesOutputArgs, opts?: InvokeOptions): Output<GetMessagesResult>
    def get_messages(deployment_id: Optional[str] = None,
                     filters: Optional[Sequence[_goldengate.GetMessagesFilter]] = None,
                     opts: Optional[InvokeOptions] = None) -> GetMessagesResult
    def get_messages_output(deployment_id: Optional[pulumi.Input[str]] = None,
                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_goldengate.GetMessagesFilterArgs]]]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetMessagesResult]
    func GetMessages(ctx *Context, args *GetMessagesArgs, opts ...InvokeOption) (*GetMessagesResult, error)
    func GetMessagesOutput(ctx *Context, args *GetMessagesOutputArgs, opts ...InvokeOption) GetMessagesResultOutput

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

    public static class GetMessages 
    {
        public static Task<GetMessagesResult> InvokeAsync(GetMessagesArgs args, InvokeOptions? opts = null)
        public static Output<GetMessagesResult> Invoke(GetMessagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMessagesResult> getMessages(GetMessagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:GoldenGate/getMessages:getMessages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DeploymentId string
    A unique Deployment identifier.
    Filters List<GetMessagesFilter>
    DeploymentId string
    A unique Deployment identifier.
    Filters []GetMessagesFilter
    deploymentId String
    A unique Deployment identifier.
    filters List<GetMessagesFilter>
    deploymentId string
    A unique Deployment identifier.
    filters GetMessagesFilter[]
    deploymentId String
    A unique Deployment identifier.
    filters List<Property Map>

    getMessages Result

    The following output properties are available:

    DeploymentId string
    DeploymentMessagesCollections List<GetMessagesDeploymentMessagesCollection>
    The list of deployment_messages_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetMessagesFilter>
    DeploymentId string
    DeploymentMessagesCollections []GetMessagesDeploymentMessagesCollection
    The list of deployment_messages_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetMessagesFilter
    deploymentId String
    deploymentMessagesCollections List<GetMessagesDeploymentMessagesCollection>
    The list of deployment_messages_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetMessagesFilter>
    deploymentId string
    deploymentMessagesCollections GetMessagesDeploymentMessagesCollection[]
    The list of deployment_messages_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetMessagesFilter[]
    deployment_id str
    deployment_messages_collections Sequence[goldengate.GetMessagesDeploymentMessagesCollection]
    The list of deployment_messages_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[goldengate.GetMessagesFilter]
    deploymentId String
    deploymentMessagesCollections List<Property Map>
    The list of deployment_messages_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetMessagesDeploymentMessagesCollection

    items List<Property Map>
    An array of DeploymentMessages.

    GetMessagesDeploymentMessagesCollectionItem

    DeploymentMessage string
    The deployment Message in plain text with optional HTML anchor tags.
    DeploymentMessageStatus string
    The deployment Message Status.
    Id string
    The deployment Message Id.
    DeploymentMessage string
    The deployment Message in plain text with optional HTML anchor tags.
    DeploymentMessageStatus string
    The deployment Message Status.
    Id string
    The deployment Message Id.
    deploymentMessage String
    The deployment Message in plain text with optional HTML anchor tags.
    deploymentMessageStatus String
    The deployment Message Status.
    id String
    The deployment Message Id.
    deploymentMessage string
    The deployment Message in plain text with optional HTML anchor tags.
    deploymentMessageStatus string
    The deployment Message Status.
    id string
    The deployment Message Id.
    deployment_message str
    The deployment Message in plain text with optional HTML anchor tags.
    deployment_message_status str
    The deployment Message Status.
    id str
    The deployment Message Id.
    deploymentMessage String
    The deployment Message in plain text with optional HTML anchor tags.
    deploymentMessageStatus String
    The deployment Message Status.
    id String
    The deployment Message Id.

    GetMessagesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi