Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getVolume
Explore with Pulumi AI
This data source provides details about a specific Volume resource in Oracle Cloud Infrastructure Core service.
Gets information for the specified volume.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolume = oci.Core.getVolume({
volumeId: testVolumeOciCoreVolume.id,
});
import pulumi
import pulumi_oci as oci
test_volume = oci.Core.get_volume(volume_id=test_volume_oci_core_volume["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.GetVolume(ctx, &core.GetVolumeArgs{
VolumeId: testVolumeOciCoreVolume.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 testVolume = Oci.Core.GetVolume.Invoke(new()
{
VolumeId = testVolumeOciCoreVolume.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.GetVolumeArgs;
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 testVolume = CoreFunctions.getVolume(GetVolumeArgs.builder()
.volumeId(testVolumeOciCoreVolume.id())
.build());
}
}
variables:
testVolume:
fn::invoke:
Function: oci:Core:getVolume
Arguments:
volumeId: ${testVolumeOciCoreVolume.id}
Using getVolume
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 getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function getVolumeOutput(args: GetVolumeOutputArgs, opts?: InvokeOptions): Output<GetVolumeResult>
def get_volume(volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_volume_output(volume_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeResult]
func GetVolume(ctx *Context, args *GetVolumeArgs, opts ...InvokeOption) (*GetVolumeResult, error)
func GetVolumeOutput(ctx *Context, args *GetVolumeOutputArgs, opts ...InvokeOption) GetVolumeResultOutput
> Note: This function is named GetVolume
in the Go SDK.
public static class GetVolume
{
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeResult> Invoke(GetVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolume:getVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Volume
Id string - The OCID of the volume.
- Volume
Id string - The OCID of the volume.
- volume
Id String - The OCID of the volume.
- volume
Id string - The OCID of the volume.
- volume_
id str - The OCID of the volume.
- volume
Id String - The OCID of the volume.
getVolume Result
The following output properties are available:
- Auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- Autotune
Policies List<GetVolume Autotune Policy> - The list of autotune policies enabled for this volume.
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Backup
Policy stringId - Block
Volume List<GetReplicas Volume Block Volume Replica> - The list of block volume replicas of this volume.
- Block
Volume boolReplicas Deletion - Cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- Compartment
Id string - The OCID of the compartment that contains the volume.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 OCID of the block volume replica.
- Is
Auto boolTune Enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - Is
Hydrated bool - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- Kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Size
In stringGbs - The size of the volume in GBs.
- Size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- Source
Details List<GetVolume Source Detail> - State string
- The current state of a volume.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Time
Created string - The date and time the volume was created. Format defined by RFC3339.
- Volume
Backup stringId - Volume
Group stringId - The OCID of the source volume group.
- Volume
Id string - Vpus
Per stringGb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- Auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- Autotune
Policies []GetVolume Autotune Policy - The list of autotune policies enabled for this volume.
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Backup
Policy stringId - Block
Volume []GetReplicas Volume Block Volume Replica - The list of block volume replicas of this volume.
- Block
Volume boolReplicas Deletion - Cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- Compartment
Id string - The OCID of the compartment that contains the volume.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 OCID of the block volume replica.
- Is
Auto boolTune Enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - Is
Hydrated bool - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- Kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- Size
In stringGbs - The size of the volume in GBs.
- Size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- Source
Details []GetVolume Source Detail - State string
- The current state of a volume.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Time
Created string - The date and time the volume was created. Format defined by RFC3339.
- Volume
Backup stringId - Volume
Group stringId - The OCID of the source volume group.
- Volume
Id string - Vpus
Per stringGb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- auto
Tuned StringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies List<GetVolume Autotune Policy> - The list of autotune policies enabled for this volume.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- backup
Policy StringId - block
Volume List<GetReplicas Volume Block Volume Replica> - The list of block volume replicas of this volume.
- block
Volume BooleanReplicas Deletion - cluster
Placement StringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id String - The OCID of the compartment that contains the volume.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 OCID of the block volume replica.
- is
Auto BooleanTune Enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - is
Hydrated Boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In StringGbs - The size of the volume in GBs.
- size
In StringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details List<GetVolume Source Detail> - state String
- The current state of a volume.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- time
Created String - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup StringId - volume
Group StringId - The OCID of the source volume group.
- volume
Id String - vpus
Per StringGb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- auto
Tuned stringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies GetVolume Autotune Policy[] - The list of autotune policies enabled for this volume.
- availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- backup
Policy stringId - block
Volume GetReplicas Volume Block Volume Replica[] - The list of block volume replicas of this volume.
- block
Volume booleanReplicas Deletion - cluster
Placement stringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id string - The OCID of the compartment that contains the volume.
- {[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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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 OCID of the block volume replica.
- is
Auto booleanTune Enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - is
Hydrated boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key stringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In stringGbs - The size of the volume in GBs.
- size
In stringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details GetVolume Source Detail[] - state string
- The current state of a volume.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- time
Created string - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup stringId - volume
Group stringId - The OCID of the source volume group.
- volume
Id string - vpus
Per stringGb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- auto_
tuned_ strvpus_ per_ gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune_
policies Sequence[core.Get Volume Autotune Policy] - The list of autotune policies enabled for this volume.
- availability_
domain str - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- backup_
policy_ strid - block_
volume_ Sequence[core.replicas Get Volume Block Volume Replica] - The list of block volume replicas of this volume.
- block_
volume_ boolreplicas_ deletion - cluster_
placement_ strgroup_ id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment_
id str - The OCID of the compartment that contains the volume.
- 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.
- 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 OCID of the block volume replica.
- is_
auto_ booltune_ enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - is_
hydrated bool - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms_
key_ strid - The OCID of the Vault service key which is the master encryption key for the volume.
- size_
in_ strgbs - The size of the volume in GBs.
- size_
in_ strmbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source_
details Sequence[core.Get Volume Source Detail] - state str
- The current state of a volume.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- time_
created str - The date and time the volume was created. Format defined by RFC3339.
- volume_
backup_ strid - volume_
group_ strid - The OCID of the source volume group.
- volume_
id str - vpus_
per_ strgb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
- auto
Tuned StringVpus Per Gb - The number of Volume Performance Units per GB that this volume is effectively tuned to.
- autotune
Policies List<Property Map> - The list of autotune policies enabled for this volume.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- backup
Policy StringId - block
Volume List<Property Map>Replicas - The list of block volume replicas of this volume.
- block
Volume BooleanReplicas Deletion - cluster
Placement StringGroup Id - The clusterPlacementGroup Id of the volume for volume placement.
- compartment
Id String - The OCID of the compartment that contains the volume.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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 OCID of the block volume replica.
- is
Auto BooleanTune Enabled - Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. Use the
DetachedVolumeAutotunePolicy
instead to enable the volume for detached autotune. - is
Hydrated Boolean - Specifies whether the cloned volume's data has finished copying from the source volume or backup.
- kms
Key StringId - The OCID of the Vault service key which is the master encryption key for the volume.
- size
In StringGbs - The size of the volume in GBs.
- size
In StringMbs - The size of the volume in MBs. This field is deprecated. Use sizeInGBs instead.
- source
Details List<Property Map> - state String
- The current state of a volume.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- time
Created String - The date and time the volume was created. Format defined by RFC3339.
- volume
Backup StringId - volume
Group StringId - The OCID of the source volume group.
- volume
Id String - vpus
Per StringGb - The number of volume performance units (VPUs) that will be applied to this volume per GB, representing the Block Volume service's elastic performance options. See Block Volume Performance Levels for more information.
Supporting Types
GetVolumeAutotunePolicy
- Autotune
Type string - This specifies the type of autotunes supported by OCI.
- Max
Vpus stringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- Autotune
Type string - This specifies the type of autotunes supported by OCI.
- Max
Vpus stringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotune
Type String - This specifies the type of autotunes supported by OCI.
- max
Vpus StringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotune
Type string - This specifies the type of autotunes supported by OCI.
- max
Vpus stringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotune_
type str - This specifies the type of autotunes supported by OCI.
- max_
vpus_ strper_ gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
- autotune
Type String - This specifies the type of autotunes supported by OCI.
- max
Vpus StringPer Gb - This will be the maximum VPUs/GB performance level that the volume will be auto-tuned temporarily based on performance monitoring.
GetVolumeBlockVolumeReplica
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- Block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- block
Volume StringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- availability
Domain string - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- block
Volume stringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- availability_
domain str - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- block_
volume_ strreplica_ id - The block volume replica's Oracle ID (OCID).
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- availability
Domain String - The availability domain of the block volume replica. Example:
Uocm:PHX-AD-1
- block
Volume StringReplica Id - The block volume replica's Oracle ID (OCID).
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
GetVolumeSourceDetail
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.