1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Kms
  5. getReplicationStatus
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Kms.getReplicationStatus

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testReplicationStatus = oci.Kms.getReplicationStatus({
        replicationId: testReplication.id,
        managementEndpoint: replicationStatusManagementEndpoint,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_replication_status = oci.Kms.get_replication_status(replication_id=test_replication["id"],
        management_endpoint=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:      testReplication.Id,
    			ManagementEndpoint: replicationStatusManagementEndpoint,
    		}, 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 testReplicationStatus = Oci.Kms.GetReplicationStatus.Invoke(new()
        {
            ReplicationId = testReplication.Id,
            ManagementEndpoint = replicationStatusManagementEndpoint,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Kms.KmsFunctions;
    import com.pulumi.oci.Kms.inputs.GetReplicationStatusArgs;
    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 testReplicationStatus = KmsFunctions.getReplicationStatus(GetReplicationStatusArgs.builder()
                .replicationId(testReplication.id())
                .managementEndpoint(replicationStatusManagementEndpoint)
                .build());
    
        }
    }
    
    variables:
      testReplicationStatus:
        fn::invoke:
          Function: oci:Kms:getReplicationStatus
          Arguments:
            replicationId: ${testReplication.id}
            managementEndpoint: ${replicationStatusManagementEndpoint}
    

    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>
    Replica Details.
    ReplicationId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagementEndpoint string
    ReplicaDetails []GetReplicationStatusReplicaDetail
    Replica Details.
    ReplicationId string
    id String
    The provider-assigned unique ID for this managed resource.
    managementEndpoint String
    replicaDetails List<GetReplicationStatusReplicaDetail>
    Replica Details.
    replicationId String
    id string
    The provider-assigned unique ID for this managed resource.
    managementEndpoint string
    replicaDetails GetReplicationStatusReplicaDetail[]
    Replica Details.
    replicationId string
    id str
    The provider-assigned unique ID for this managed resource.
    management_endpoint str
    replica_details Sequence[kms.GetReplicationStatusReplicaDetail]
    Replica Details.
    replication_id str
    id String
    The provider-assigned unique ID for this managed resource.
    managementEndpoint String
    replicaDetails List<Property Map>
    Replica Details.
    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi