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

oci.Kms.getVaultReplicas

Explore with Pulumi AI

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

    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:

    VaultId string
    The OCID of the vault.
    Filters List<GetVaultReplicasFilter>
    VaultId string
    The OCID of the vault.
    Filters []GetVaultReplicasFilter
    vaultId String
    The OCID of the vault.
    filters List<GetVaultReplicasFilter>
    vaultId string
    The OCID of the vault.
    filters GetVaultReplicasFilter[]
    vaultId 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.
    VaultId string
    VaultReplicas List<GetVaultReplicasVaultReplica>
    The list of vault_replicas.
    Filters List<GetVaultReplicasFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    VaultId string
    VaultReplicas []GetVaultReplicasVaultReplica
    The list of vault_replicas.
    Filters []GetVaultReplicasFilter
    id String
    The provider-assigned unique ID for this managed resource.
    vaultId String
    vaultReplicas List<GetVaultReplicasVaultReplica>
    The list of vault_replicas.
    filters List<GetVaultReplicasFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    vaultId string
    vaultReplicas GetVaultReplicasVaultReplica[]
    The list of vault_replicas.
    filters GetVaultReplicasFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    vault_id str
    vault_replicas Sequence[kms.GetVaultReplicasVaultReplica]
    The list of vault_replicas.
    filters Sequence[kms.GetVaultReplicasFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    vaultId String
    vaultReplicas List<Property Map>
    The list of vault_replicas.
    filters List<Property Map>

    Supporting Types

    GetVaultReplicasFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetVaultReplicasVaultReplica

    CryptoEndpoint string
    The vault replica's crypto endpoint
    ManagementEndpoint string
    The vault replica's management endpoint
    Region string
    Region to which vault is replicated to
    Status string
    Status of the Vault
    CryptoEndpoint string
    The vault replica's crypto endpoint
    ManagementEndpoint string
    The vault replica's management endpoint
    Region string
    Region to which vault is replicated to
    Status string
    Status of the Vault
    cryptoEndpoint String
    The vault replica's crypto endpoint
    managementEndpoint String
    The vault replica's management endpoint
    region String
    Region to which vault is replicated to
    status String
    Status of the Vault
    cryptoEndpoint string
    The vault replica's crypto endpoint
    managementEndpoint 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
    cryptoEndpoint String
    The vault replica's crypto endpoint
    managementEndpoint 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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi