Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getReplicationStatus

This data source provides details about a specific Replication Status resource in Oracle Cloud Infrastructure Kms service.

When a vault has a replica, each operation on the vault or its resources, such as keys, is replicated and has an associated replicationId. Replication status provides details about whether the operation associated with the given replicationId has been successfully applied across replicas.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testReplicationStatus = Output.Create(Oci.Kms.GetReplicationStatus.InvokeAsync(new Oci.Kms.GetReplicationStatusArgs
        {
            ReplicationId = oci_kms_replication.Test_replication.Id,
            ManagementEndpoint = @var.Replication_status_management_endpoint,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Kms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Kms.GetReplicationStatus(ctx, &kms.GetReplicationStatusArgs{
			ReplicationId:      oci_kms_replication.Test_replication.Id,
			ManagementEndpoint: _var.Replication_status_management_endpoint,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_replication_status = oci.Kms.get_replication_status(replication_id=oci_kms_replication["test_replication"]["id"],
    management_endpoint=var["replication_status_management_endpoint"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testReplicationStatus = oci.Kms.getReplicationStatus({
    replicationId: oci_kms_replication.test_replication.id,
    managementEndpoint: _var.replication_status_management_endpoint,
});

Coming soon!

Using getReplicationStatus

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 getReplicationStatus(args: GetReplicationStatusArgs, opts?: InvokeOptions): Promise<GetReplicationStatusResult>
function getReplicationStatusOutput(args: GetReplicationStatusOutputArgs, opts?: InvokeOptions): Output<GetReplicationStatusResult>
def get_replication_status(management_endpoint: Optional[str] = None,
                           replication_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetReplicationStatusResult
def get_replication_status_output(management_endpoint: Optional[pulumi.Input[str]] = None,
                           replication_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetReplicationStatusResult]
func GetReplicationStatus(ctx *Context, args *GetReplicationStatusArgs, opts ...InvokeOption) (*GetReplicationStatusResult, error)
func GetReplicationStatusOutput(ctx *Context, args *GetReplicationStatusOutputArgs, opts ...InvokeOption) GetReplicationStatusResultOutput

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

public static class GetReplicationStatus 
{
    public static Task<GetReplicationStatusResult> InvokeAsync(GetReplicationStatusArgs args, InvokeOptions? opts = null)
    public static Output<GetReplicationStatusResult> Invoke(GetReplicationStatusInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetReplicationStatusResult> getReplicationStatus(GetReplicationStatusArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Kms/getReplicationStatus:getReplicationStatus
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ManagementEndpoint string

The service endpoint to perform management operations against. See Vault Management endpoint.

ReplicationId string

replicationId associated with an operation on a resource

ManagementEndpoint string

The service endpoint to perform management operations against. See Vault Management endpoint.

ReplicationId string

replicationId associated with an operation on a resource

managementEndpoint String

The service endpoint to perform management operations against. See Vault Management endpoint.

replicationId String

replicationId associated with an operation on a resource

managementEndpoint string

The service endpoint to perform management operations against. See Vault Management endpoint.

replicationId string

replicationId associated with an operation on a resource

management_endpoint str

The service endpoint to perform management operations against. See Vault Management endpoint.

replication_id str

replicationId associated with an operation on a resource

managementEndpoint String

The service endpoint to perform management operations against. See Vault Management endpoint.

replicationId String

replicationId associated with an operation on a resource

getReplicationStatus Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

ManagementEndpoint string
ReplicaDetails List<GetReplicationStatusReplicaDetail>
ReplicationId string
Id string

The provider-assigned unique ID for this managed resource.

ManagementEndpoint string
ReplicaDetails []GetReplicationStatusReplicaDetail
ReplicationId string
id String

The provider-assigned unique ID for this managed resource.

managementEndpoint String
replicaDetails List<GetReplicationStatusReplicaDetail>
replicationId String
id string

The provider-assigned unique ID for this managed resource.

managementEndpoint string
replicaDetails GetReplicationStatusReplicaDetail[]
replicationId string
id str

The provider-assigned unique ID for this managed resource.

management_endpoint str
replica_details GetReplicationStatusReplicaDetail]
replication_id str
id String

The provider-assigned unique ID for this managed resource.

managementEndpoint String
replicaDetails List<Property Map>
replicationId String

Supporting Types

GetReplicationStatusReplicaDetail

Region string

The replica region

Status string

Replication status associated with a replicationId

Region string

The replica region

Status string

Replication status associated with a replicationId

region String

The replica region

status String

Replication status associated with a replicationId

region string

The replica region

status string

Replication status associated with a replicationId

region str

The replica region

status str

Replication status associated with a replicationId

region String

The replica region

status String

Replication status associated with a replicationId

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.