Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GoldenGate/getMessage:getMessage
arguments:
# arguments dictionary
The following arguments are supported:
- Deployment
Id string - A unique Deployment identifier.
- Deployment
Id string - A unique Deployment identifier.
- deployment
Id String - A unique Deployment identifier.
- deployment
Id string - A unique Deployment identifier.
- deployment_
id str - A unique Deployment identifier.
- deployment
Id String - A unique Deployment identifier.
getMessage Result
The following output properties are available:
- Deployment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Message Item> - An array of DeploymentMessages.
- Deployment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Message Item - An array of DeploymentMessages.
- deployment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Message Item> - An array of DeploymentMessages.
- deployment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Message Item[] - An array of DeploymentMessages.
- deployment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[goldengate.
Get Message Item] - An array of DeploymentMessages.
- deployment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- An array of DeploymentMessages.
Supporting Types
GetMessageItem
- Deployment
Message string - The deployment Message in plain text with optional HTML anchor tags.
- Deployment
Message stringStatus - The deployment Message Status.
- Id string
- The deployment Message Id.
- Deployment
Message string - The deployment Message in plain text with optional HTML anchor tags.
- Deployment
Message stringStatus - The deployment Message Status.
- Id string
- The deployment Message Id.
- deployment
Message String - The deployment Message in plain text with optional HTML anchor tags.
- deployment
Message StringStatus - The deployment Message Status.
- id String
- The deployment Message Id.
- deployment
Message string - The deployment Message in plain text with optional HTML anchor tags.
- deployment
Message 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.
- deployment
Message String - The deployment Message in plain text with optional HTML anchor tags.
- deployment
Message 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
oci
Terraform Provider.