oci.Kms.getVaultReplicas
Explore with Pulumi AI
This data source provides the list of Vault Replicas in Oracle Cloud Infrastructure Kms service.
Lists the replicas for a vault
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVaultReplicas = oci.Kms.getVaultReplicas({
vaultId: testVault.id,
});
import pulumi
import pulumi_oci as oci
test_vault_replicas = oci.Kms.get_vault_replicas(vault_id=test_vault["id"])
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.GetVaultReplicas(ctx, &kms.GetVaultReplicasArgs{
VaultId: testVault.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 testVaultReplicas = Oci.Kms.GetVaultReplicas.Invoke(new()
{
VaultId = testVault.Id,
});
});
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.GetVaultReplicasArgs;
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 testVaultReplicas = KmsFunctions.getVaultReplicas(GetVaultReplicasArgs.builder()
.vaultId(testVault.id())
.build());
}
}
variables:
testVaultReplicas:
fn::invoke:
Function: oci:Kms:getVaultReplicas
Arguments:
vaultId: ${testVault.id}
Using getVaultReplicas
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 getVaultReplicas(args: GetVaultReplicasArgs, opts?: InvokeOptions): Promise<GetVaultReplicasResult>
function getVaultReplicasOutput(args: GetVaultReplicasOutputArgs, opts?: InvokeOptions): Output<GetVaultReplicasResult>
def get_vault_replicas(filters: Optional[Sequence[_kms.GetVaultReplicasFilter]] = None,
vault_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVaultReplicasResult
def get_vault_replicas_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_kms.GetVaultReplicasFilterArgs]]]] = None,
vault_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVaultReplicasResult]
func GetVaultReplicas(ctx *Context, args *GetVaultReplicasArgs, opts ...InvokeOption) (*GetVaultReplicasResult, error)
func GetVaultReplicasOutput(ctx *Context, args *GetVaultReplicasOutputArgs, opts ...InvokeOption) GetVaultReplicasResultOutput
> Note: This function is named GetVaultReplicas
in the Go SDK.
public static class GetVaultReplicas
{
public static Task<GetVaultReplicasResult> InvokeAsync(GetVaultReplicasArgs args, InvokeOptions? opts = null)
public static Output<GetVaultReplicasResult> Invoke(GetVaultReplicasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVaultReplicasResult> getVaultReplicas(GetVaultReplicasArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Kms/getVaultReplicas:getVaultReplicas
arguments:
# arguments dictionary
The following arguments are supported:
- Vault
Id string - The OCID of the vault.
- Filters
List<Get
Vault Replicas Filter>
- Vault
Id string - The OCID of the vault.
- Filters
[]Get
Vault Replicas Filter
- vault
Id String - The OCID of the vault.
- filters
List<Get
Vault Replicas Filter>
- vault
Id string - The OCID of the vault.
- filters
Get
Vault Replicas Filter[]
- vault_
id str - The OCID of the vault.
- filters
Sequence[kms.
Get Vault Replicas Filter]
- vault
Id String - The OCID of the vault.
- filters List<Property Map>
getVaultReplicas Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Vault
Id string - Vault
Replicas List<GetVault Replicas Vault Replica> - The list of vault_replicas.
- Filters
List<Get
Vault Replicas Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Vault
Id string - Vault
Replicas []GetVault Replicas Vault Replica - The list of vault_replicas.
- Filters
[]Get
Vault Replicas Filter
- id String
- The provider-assigned unique ID for this managed resource.
- vault
Id String - vault
Replicas List<GetVault Replicas Vault Replica> - The list of vault_replicas.
- filters
List<Get
Vault Replicas Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- vault
Id string - vault
Replicas GetVault Replicas Vault Replica[] - The list of vault_replicas.
- filters
Get
Vault Replicas Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- vault_
id str - vault_
replicas Sequence[kms.Get Vault Replicas Vault Replica] - The list of vault_replicas.
- filters
Sequence[kms.
Get Vault Replicas Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- vault
Id String - vault
Replicas List<Property Map> - The list of vault_replicas.
- filters List<Property Map>
Supporting Types
GetVaultReplicasFilter
GetVaultReplicasVaultReplica
- Crypto
Endpoint string - The vault replica's crypto endpoint
- Management
Endpoint string - The vault replica's management endpoint
- Region string
- Region to which vault is replicated to
- Status string
- Status of the Vault
- Crypto
Endpoint string - The vault replica's crypto endpoint
- Management
Endpoint string - The vault replica's management endpoint
- Region string
- Region to which vault is replicated to
- Status string
- Status of the Vault
- crypto
Endpoint String - The vault replica's crypto endpoint
- management
Endpoint String - The vault replica's management endpoint
- region String
- Region to which vault is replicated to
- status String
- Status of the Vault
- crypto
Endpoint string - The vault replica's crypto endpoint
- management
Endpoint string - The vault replica's management endpoint
- region string
- Region to which vault is replicated to
- status string
- Status of the Vault
- crypto_
endpoint str - The vault replica's crypto endpoint
- management_
endpoint str - The vault replica's management endpoint
- region str
- Region to which vault is replicated to
- status str
- Status of the Vault
- crypto
Endpoint String - The vault replica's crypto endpoint
- management
Endpoint String - The vault replica's management endpoint
- region String
- Region to which vault is replicated to
- status String
- Status of the Vault
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.