Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Core.getVolumeGroupBackups
Explore with Pulumi AI
This data source provides the list of Volume Group Backups in Oracle Cloud Infrastructure Core service.
Lists the volume group backups in the specified compartment. You can filter the results by volume group. For more information, see Volume Groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeGroupBackups = oci.Core.getVolumeGroupBackups({
    compartmentId: compartmentId,
    displayName: volumeGroupBackupDisplayName,
    volumeGroupId: testVolumeGroup.id,
});
import pulumi
import pulumi_oci as oci
test_volume_group_backups = oci.Core.get_volume_group_backups(compartment_id=compartment_id,
    display_name=volume_group_backup_display_name,
    volume_group_id=test_volume_group["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.GetVolumeGroupBackups(ctx, &core.GetVolumeGroupBackupsArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(volumeGroupBackupDisplayName),
			VolumeGroupId: pulumi.StringRef(testVolumeGroup.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 testVolumeGroupBackups = Oci.Core.GetVolumeGroupBackups.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = volumeGroupBackupDisplayName,
        VolumeGroupId = testVolumeGroup.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.GetVolumeGroupBackupsArgs;
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 testVolumeGroupBackups = CoreFunctions.getVolumeGroupBackups(GetVolumeGroupBackupsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(volumeGroupBackupDisplayName)
            .volumeGroupId(testVolumeGroup.id())
            .build());
    }
}
variables:
  testVolumeGroupBackups:
    fn::invoke:
      function: oci:Core:getVolumeGroupBackups
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${volumeGroupBackupDisplayName}
        volumeGroupId: ${testVolumeGroup.id}
Using getVolumeGroupBackups
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 getVolumeGroupBackups(args: GetVolumeGroupBackupsArgs, opts?: InvokeOptions): Promise<GetVolumeGroupBackupsResult>
function getVolumeGroupBackupsOutput(args: GetVolumeGroupBackupsOutputArgs, opts?: InvokeOptions): Output<GetVolumeGroupBackupsResult>def get_volume_group_backups(compartment_id: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[GetVolumeGroupBackupsFilter]] = None,
                             volume_group_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetVolumeGroupBackupsResult
def get_volume_group_backups_output(compartment_id: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetVolumeGroupBackupsFilterArgs]]]] = None,
                             volume_group_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetVolumeGroupBackupsResult]func GetVolumeGroupBackups(ctx *Context, args *GetVolumeGroupBackupsArgs, opts ...InvokeOption) (*GetVolumeGroupBackupsResult, error)
func GetVolumeGroupBackupsOutput(ctx *Context, args *GetVolumeGroupBackupsOutputArgs, opts ...InvokeOption) GetVolumeGroupBackupsResultOutput> Note: This function is named GetVolumeGroupBackups in the Go SDK.
public static class GetVolumeGroupBackups 
{
    public static Task<GetVolumeGroupBackupsResult> InvokeAsync(GetVolumeGroupBackupsArgs args, InvokeOptions? opts = null)
    public static Output<GetVolumeGroupBackupsResult> Invoke(GetVolumeGroupBackupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVolumeGroupBackupsResult> getVolumeGroupBackups(GetVolumeGroupBackupsArgs args, InvokeOptions options)
public static Output<GetVolumeGroupBackupsResult> getVolumeGroupBackups(GetVolumeGroupBackupsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getVolumeGroupBackups:getVolumeGroupBackups
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetVolume Group Backups Filter> 
- VolumeGroup stringId 
- The OCID of the volume group.
- CompartmentId string
- The OCID of the compartment.
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetVolume Group Backups Filter 
- VolumeGroup stringId 
- The OCID of the volume group.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetVolume Group Backups Filter> 
- volumeGroup StringId 
- The OCID of the volume group.
- compartmentId string
- The OCID of the compartment.
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetVolume Group Backups Filter[] 
- volumeGroup stringId 
- The OCID of the volume group.
- compartment_id str
- The OCID of the compartment.
- display_name str
- A filter to return only resources that match the given display name exactly.
- filters
Sequence[GetVolume Group Backups Filter] 
- volume_group_ strid 
- The OCID of the volume group.
- compartmentId String
- The OCID of the compartment.
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- volumeGroup StringId 
- The OCID of the volume group.
getVolumeGroupBackups Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the volume group backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- VolumeGroup List<GetBackups Volume Group Backups Volume Group Backup> 
- The list of volume_group_backups.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<GetVolume Group Backups Filter> 
- VolumeGroup stringId 
- The OCID of the source volume group.
- CompartmentId string
- The OCID of the compartment that contains the volume group backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- VolumeGroup []GetBackups Volume Group Backups Volume Group Backup 
- The list of volume_group_backups.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]GetVolume Group Backups Filter 
- VolumeGroup stringId 
- The OCID of the source volume group.
- compartmentId String
- The OCID of the compartment that contains the volume group backup.
- id String
- The provider-assigned unique ID for this managed resource.
- volumeGroup List<GetBackups Volume Group Backups Volume Group Backup> 
- The list of volume_group_backups.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<GetVolume Group Backups Filter> 
- volumeGroup StringId 
- The OCID of the source volume group.
- compartmentId string
- The OCID of the compartment that contains the volume group backup.
- id string
- The provider-assigned unique ID for this managed resource.
- volumeGroup GetBackups Volume Group Backups Volume Group Backup[] 
- The list of volume_group_backups.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
GetVolume Group Backups Filter[] 
- volumeGroup stringId 
- The OCID of the source volume group.
- compartment_id str
- The OCID of the compartment that contains the volume group backup.
- id str
- The provider-assigned unique ID for this managed resource.
- volume_group_ Sequence[Getbackups Volume Group Backups Volume Group Backup] 
- The list of volume_group_backups.
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Sequence[GetVolume Group Backups Filter] 
- volume_group_ strid 
- The OCID of the source volume group.
- compartmentId String
- The OCID of the compartment that contains the volume group backup.
- id String
- The provider-assigned unique ID for this managed resource.
- volumeGroup List<Property Map>Backups 
- The list of volume_group_backups.
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- volumeGroup StringId 
- The OCID of the source volume group.
Supporting Types
GetVolumeGroupBackupsFilter    
GetVolumeGroupBackupsVolumeGroupBackup      
- CompartmentId string
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- ExpirationTime string
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- 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 volume group backup.
- SizeIn stringGbs 
- The aggregate size of the volume group backup, in GBs.
- SizeIn stringMbs 
- The aggregate size of the volume group backup, in MBs.
- SourceDetails List<GetVolume Group Backups Volume Group Backup Source Detail> 
- SourceType string
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- SourceVolume stringGroup Backup Id 
- The OCID of the source volume group backup.
- State string
- The current state of a volume group backup.
- TimeCreated string
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- TimeRequest stringReceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- Type string
- The type of backup.
- UniqueSize stringIn Gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- UniqueSize stringIn Mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- VolumeBackup List<string>Ids 
- OCIDs for the volume backups in this volume group backup.
- VolumeGroup stringId 
- The OCID of the volume group.
- CompartmentId string
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- ExpirationTime string
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- 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 volume group backup.
- SizeIn stringGbs 
- The aggregate size of the volume group backup, in GBs.
- SizeIn stringMbs 
- The aggregate size of the volume group backup, in MBs.
- SourceDetails []GetVolume Group Backups Volume Group Backup Source Detail 
- SourceType string
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- SourceVolume stringGroup Backup Id 
- The OCID of the source volume group backup.
- State string
- The current state of a volume group backup.
- TimeCreated string
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- TimeRequest stringReceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- Type string
- The type of backup.
- UniqueSize stringIn Gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- UniqueSize stringIn Mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- VolumeBackup []stringIds 
- OCIDs for the volume backups in this volume group backup.
- VolumeGroup stringId 
- The OCID of the volume group.
- compartmentId String
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- expirationTime String
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- 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 volume group backup.
- sizeIn StringGbs 
- The aggregate size of the volume group backup, in GBs.
- sizeIn StringMbs 
- The aggregate size of the volume group backup, in MBs.
- sourceDetails List<GetVolume Group Backups Volume Group Backup Source Detail> 
- sourceType String
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- sourceVolume StringGroup Backup Id 
- The OCID of the source volume group backup.
- state String
- The current state of a volume group backup.
- timeCreated String
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- timeRequest StringReceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- type String
- The type of backup.
- uniqueSize StringIn Gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- uniqueSize StringIn Mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- volumeBackup List<String>Ids 
- OCIDs for the volume backups in this volume group backup.
- volumeGroup StringId 
- The OCID of the volume group.
- compartmentId string
- The OCID of the compartment.
- {[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 filter to return only resources that match the given display name exactly.
- expirationTime string
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- {[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 volume group backup.
- sizeIn stringGbs 
- The aggregate size of the volume group backup, in GBs.
- sizeIn stringMbs 
- The aggregate size of the volume group backup, in MBs.
- sourceDetails GetVolume Group Backups Volume Group Backup Source Detail[] 
- sourceType string
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- sourceVolume stringGroup Backup Id 
- The OCID of the source volume group backup.
- state string
- The current state of a volume group backup.
- timeCreated string
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- timeRequest stringReceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- type string
- The type of backup.
- uniqueSize stringIn Gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- uniqueSize stringIn Mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- volumeBackup string[]Ids 
- OCIDs for the volume backups in this volume group backup.
- volumeGroup stringId 
- The OCID of the volume group.
- compartment_id str
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- expiration_time str
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- 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 volume group backup.
- size_in_ strgbs 
- The aggregate size of the volume group backup, in GBs.
- size_in_ strmbs 
- The aggregate size of the volume group backup, in MBs.
- source_details Sequence[GetVolume Group Backups Volume Group Backup Source Detail] 
- source_type str
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- source_volume_ strgroup_ backup_ id 
- The OCID of the source volume group backup.
- state str
- The current state of a volume group backup.
- time_created str
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- time_request_ strreceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- type str
- The type of backup.
- unique_size_ strin_ gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- unique_size_ strin_ mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- volume_backup_ Sequence[str]ids 
- OCIDs for the volume backups in this volume group backup.
- volume_group_ strid 
- The OCID of the volume group.
- compartmentId String
- The OCID of the compartment.
- 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 filter to return only resources that match the given display name exactly.
- expirationTime String
- The date and time the volume group backup will expire and be automatically deleted. Format defined by RFC3339. This parameter will always be present for volume group backups that were created automatically by a scheduled-backup policy. For manually created volume group backups, it will be absent, signifying that there is no expiration time and the backup will last forever until manually deleted.
- 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 volume group backup.
- sizeIn StringGbs 
- The aggregate size of the volume group backup, in GBs.
- sizeIn StringMbs 
- The aggregate size of the volume group backup, in MBs.
- sourceDetails List<Property Map>
- sourceType String
- Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- sourceVolume StringGroup Backup Id 
- The OCID of the source volume group backup.
- state String
- The current state of a volume group backup.
- timeCreated String
- The date and time the volume group backup was created. This is the time the actual point-in-time image of the volume group data was taken. Format defined by RFC3339.
- timeRequest StringReceived 
- The date and time the request to create the volume group backup was received. Format defined by RFC3339.
- type String
- The type of backup.
- uniqueSize StringIn Gbs 
- The aggregate size used by the volume group backup, in GBs. It is typically smaller than size_in_gbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- uniqueSize StringIn Mbs 
- The aggregate size used by the volume group backup, in MBs. It is typically smaller than size_in_mbs, depending on the space consumed on the volume group and whether the volume backup is full or incremental.
- volumeBackup List<String>Ids 
- OCIDs for the volume backups in this volume group backup.
- volumeGroup StringId 
- The OCID of the volume group.
GetVolumeGroupBackupsVolumeGroupBackupSourceDetail        
- KmsKey stringId 
- Region string
- VolumeGroup stringBackup Id 
- KmsKey stringId 
- Region string
- VolumeGroup stringBackup Id 
- kmsKey StringId 
- region String
- volumeGroup StringBackup Id 
- kmsKey stringId 
- region string
- volumeGroup stringBackup Id 
- kms_key_ strid 
- region str
- volume_group_ strbackup_ id 
- kmsKey StringId 
- region String
- volumeGroup StringBackup Id 
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.