Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.GoldenGate.getMessage
Explore with Pulumi AI
This data source provides details about a specific Message resource 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 testMessage = oci.GoldenGate.getMessage({
    deploymentId: testDeployment.id,
});
import pulumi
import pulumi_oci as oci
test_message = oci.GoldenGate.get_message(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.GetMessage(ctx, &goldengate.GetMessageArgs{
			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 testMessage = Oci.GoldenGate.GetMessage.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.GetMessageArgs;
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 testMessage = GoldenGateFunctions.getMessage(GetMessageArgs.builder()
            .deploymentId(testDeployment.id())
            .build());
    }
}
variables:
  testMessage:
    fn::invoke:
      function: oci:GoldenGate:getMessage
      arguments:
        deploymentId: ${testDeployment.id}
Using getMessage
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 getMessage(args: GetMessageArgs, opts?: InvokeOptions): Promise<GetMessageResult>
function getMessageOutput(args: GetMessageOutputArgs, opts?: InvokeOptions): Output<GetMessageResult>def get_message(deployment_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetMessageResult
def get_message_output(deployment_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetMessageResult]func GetMessage(ctx *Context, args *GetMessageArgs, opts ...InvokeOption) (*GetMessageResult, error)
func GetMessageOutput(ctx *Context, args *GetMessageOutputArgs, opts ...InvokeOption) GetMessageResultOutput> Note: This function is named GetMessage in the Go SDK.
public static class GetMessage 
{
    public static Task<GetMessageResult> InvokeAsync(GetMessageArgs args, InvokeOptions? opts = null)
    public static Output<GetMessageResult> Invoke(GetMessageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMessageResult> getMessage(GetMessageArgs args, InvokeOptions options)
public static Output<GetMessageResult> getMessage(GetMessageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:GoldenGate/getMessage:getMessage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DeploymentId string
- A unique Deployment identifier.
- DeploymentId string
- A unique Deployment identifier.
- deploymentId String
- A unique Deployment identifier.
- deploymentId string
- A unique Deployment identifier.
- deployment_id str
- A unique Deployment identifier.
- deploymentId String
- A unique Deployment identifier.
getMessage Result
The following output properties are available:
- DeploymentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetMessage Item> 
- An array of DeploymentMessages.
- DeploymentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetMessage Item 
- An array of DeploymentMessages.
- deploymentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetMessage Item> 
- An array of DeploymentMessages.
- deploymentId string
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetMessage Item[] 
- An array of DeploymentMessages.
- deployment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[GetMessage Item] 
- An array of DeploymentMessages.
- deploymentId String
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- An array of DeploymentMessages.
Supporting Types
GetMessageItem  
- DeploymentMessage string
- The deployment Message in plain text with optional HTML anchor tags.
- DeploymentMessage stringStatus 
- The deployment Message Status.
- Id string
- The deployment Message Id.
- DeploymentMessage string
- The deployment Message in plain text with optional HTML anchor tags.
- DeploymentMessage stringStatus 
- The deployment Message Status.
- Id string
- The deployment Message Id.
- deploymentMessage String
- The deployment Message in plain text with optional HTML anchor tags.
- deploymentMessage StringStatus 
- The deployment Message Status.
- id String
- The deployment Message Id.
- deploymentMessage string
- The deployment Message in plain text with optional HTML anchor tags.
- deploymentMessage stringStatus 
- 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_ strstatus 
- The deployment Message Status.
- id str
- The deployment Message Id.
- deploymentMessage String
- The deployment Message in plain text with optional HTML anchor tags.
- deploymentMessage StringStatus 
- The deployment Message Status.
- id String
- The deployment Message Id.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.