1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getBlockVolumeReplica
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.Core.getBlockVolumeReplica

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    This data source provides details about a specific Block Volume Replica resource in Oracle Cloud Infrastructure Core service.

    Gets information for the specified block volume replica.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBlockVolumeReplica = oci.Core.getBlockVolumeReplica({
        blockVolumeReplicaId: testBlockVolumeReplicaOciCoreBlockVolumeReplica.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_block_volume_replica = oci.Core.get_block_volume_replica(block_volume_replica_id=test_block_volume_replica_oci_core_block_volume_replica["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Core.GetBlockVolumeReplica(ctx, &core.GetBlockVolumeReplicaArgs{
    			BlockVolumeReplicaId: testBlockVolumeReplicaOciCoreBlockVolumeReplica.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 testBlockVolumeReplica = Oci.Core.GetBlockVolumeReplica.Invoke(new()
        {
            BlockVolumeReplicaId = testBlockVolumeReplicaOciCoreBlockVolumeReplica.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.CoreFunctions;
    import com.pulumi.oci.Core.inputs.GetBlockVolumeReplicaArgs;
    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 testBlockVolumeReplica = CoreFunctions.getBlockVolumeReplica(GetBlockVolumeReplicaArgs.builder()
                .blockVolumeReplicaId(testBlockVolumeReplicaOciCoreBlockVolumeReplica.id())
                .build());
    
        }
    }
    
    variables:
      testBlockVolumeReplica:
        fn::invoke:
          Function: oci:Core:getBlockVolumeReplica
          Arguments:
            blockVolumeReplicaId: ${testBlockVolumeReplicaOciCoreBlockVolumeReplica.id}
    

    Using getBlockVolumeReplica

    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 getBlockVolumeReplica(args: GetBlockVolumeReplicaArgs, opts?: InvokeOptions): Promise<GetBlockVolumeReplicaResult>
    function getBlockVolumeReplicaOutput(args: GetBlockVolumeReplicaOutputArgs, opts?: InvokeOptions): Output<GetBlockVolumeReplicaResult>
    def get_block_volume_replica(block_volume_replica_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetBlockVolumeReplicaResult
    def get_block_volume_replica_output(block_volume_replica_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetBlockVolumeReplicaResult]
    func GetBlockVolumeReplica(ctx *Context, args *GetBlockVolumeReplicaArgs, opts ...InvokeOption) (*GetBlockVolumeReplicaResult, error)
    func GetBlockVolumeReplicaOutput(ctx *Context, args *GetBlockVolumeReplicaOutputArgs, opts ...InvokeOption) GetBlockVolumeReplicaResultOutput

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

    public static class GetBlockVolumeReplica 
    {
        public static Task<GetBlockVolumeReplicaResult> InvokeAsync(GetBlockVolumeReplicaArgs args, InvokeOptions? opts = null)
        public static Output<GetBlockVolumeReplicaResult> Invoke(GetBlockVolumeReplicaInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBlockVolumeReplicaResult> getBlockVolumeReplica(GetBlockVolumeReplicaArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getBlockVolumeReplica:getBlockVolumeReplica
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BlockVolumeReplicaId string
    The OCID of the block volume replica.
    BlockVolumeReplicaId string
    The OCID of the block volume replica.
    blockVolumeReplicaId String
    The OCID of the block volume replica.
    blockVolumeReplicaId string
    The OCID of the block volume replica.
    block_volume_replica_id str
    The OCID of the block volume replica.
    blockVolumeReplicaId String
    The OCID of the block volume replica.

    getBlockVolumeReplica Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BlockVolumeId string
    The OCID of the source block volume.
    BlockVolumeReplicaId string
    CompartmentId string
    The OCID of the compartment that contains the block volume replica.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    KmsKeyId string
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    SizeInGbs string
    The size of the source block volume, in GBs.
    State string
    The current state of a block volume replica.
    TimeCreated string
    The date and time the block volume replica was created. Format defined by RFC3339.
    TimeLastSynced string
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    VolumeGroupReplicaId string
    AvailabilityDomain string
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    BlockVolumeId string
    The OCID of the source block volume.
    BlockVolumeReplicaId string
    CompartmentId string
    The OCID of the compartment that contains the block volume replica.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    KmsKeyId string
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    SizeInGbs string
    The size of the source block volume, in GBs.
    State string
    The current state of a block volume replica.
    TimeCreated string
    The date and time the block volume replica was created. Format defined by RFC3339.
    TimeLastSynced string
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    VolumeGroupReplicaId string
    availabilityDomain String
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeId String
    The OCID of the source block volume.
    blockVolumeReplicaId String
    compartmentId String
    The OCID of the compartment that contains the block volume replica.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    kmsKeyId String
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    sizeInGbs String
    The size of the source block volume, in GBs.
    state String
    The current state of a block volume replica.
    timeCreated String
    The date and time the block volume replica was created. Format defined by RFC3339.
    timeLastSynced String
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    volumeGroupReplicaId String
    availabilityDomain string
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeId string
    The OCID of the source block volume.
    blockVolumeReplicaId string
    compartmentId string
    The OCID of the compartment that contains the block volume replica.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The provider-assigned unique ID for this managed resource.
    kmsKeyId string
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    sizeInGbs string
    The size of the source block volume, in GBs.
    state string
    The current state of a block volume replica.
    timeCreated string
    The date and time the block volume replica was created. Format defined by RFC3339.
    timeLastSynced string
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    volumeGroupReplicaId string
    availability_domain str
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    block_volume_id str
    The OCID of the source block volume.
    block_volume_replica_id str
    compartment_id str
    The OCID of the compartment that contains the block volume replica.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The provider-assigned unique ID for this managed resource.
    kms_key_id str
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    size_in_gbs str
    The size of the source block volume, in GBs.
    state str
    The current state of a block volume replica.
    time_created str
    The date and time the block volume replica was created. Format defined by RFC3339.
    time_last_synced str
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    volume_group_replica_id str
    availabilityDomain String
    The availability domain of the block volume replica. Example: Uocm:PHX-AD-1
    blockVolumeId String
    The OCID of the source block volume.
    blockVolumeReplicaId String
    compartmentId String
    The OCID of the compartment that contains the block volume replica.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    kmsKeyId String
    The OCID of the Vault service key to assign as the master encryption key for the block volume replica, see Overview of Vault service and Using Keys.
    sizeInGbs String
    The size of the source block volume, in GBs.
    state String
    The current state of a block volume replica.
    timeCreated String
    The date and time the block volume replica was created. Format defined by RFC3339.
    timeLastSynced String
    The date and time the block volume replica was last synced from the source block volume. Format defined by RFC3339.
    volumeGroupReplicaId String

    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 v2.18.0 published on Friday, Nov 22, 2024 by Pulumi