oci.Kms.getReplicationStatus
Explore with Pulumi AI
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/v2/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:
- Management
Endpoint string - The service endpoint to perform management operations against. See Vault Management endpoint.
- Replication
Id string - replicationId associated with an operation on a resource
- Management
Endpoint string - The service endpoint to perform management operations against. See Vault Management endpoint.
- Replication
Id string - replicationId associated with an operation on a resource
- management
Endpoint String - The service endpoint to perform management operations against. See Vault Management endpoint.
- replication
Id String - replicationId associated with an operation on a resource
- management
Endpoint string - The service endpoint to perform management operations against. See Vault Management endpoint.
- replication
Id 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
- management
Endpoint String - The service endpoint to perform management operations against. See Vault Management endpoint.
- replication
Id 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.
- Management
Endpoint string - Replica
Details List<GetReplication Status Replica Detail> - Replica Details.
- Replication
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Management
Endpoint string - Replica
Details []GetReplication Status Replica Detail - Replica Details.
- Replication
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- management
Endpoint String - replica
Details List<GetReplication Status Replica Detail> - Replica Details.
- replication
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- management
Endpoint string - replica
Details GetReplication Status Replica Detail[] - Replica Details.
- replication
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- management_
endpoint str - replica_
details Sequence[kms.Get Replication Status Replica Detail] - Replica Details.
- replication_
id str
- id String
- The provider-assigned unique ID for this managed resource.
- management
Endpoint String - replica
Details List<Property Map> - Replica Details.
- replication
Id String
Supporting Types
GetReplicationStatusReplicaDetail
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.