Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_core.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[_core.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolumeGroupBackups:getVolumeGroupBackups
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Volume Group Backups Filter> - Volume
Group stringId - The OCID of the volume group.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Volume Group Backups Filter - Volume
Group stringId - The OCID of the volume group.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Volume Group Backups Filter> - volume
Group StringId - The OCID of the volume group.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Volume Group Backups Filter[] - volume
Group 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[core.
Get Volume Group Backups Filter] - volume_
group_ strid - The OCID of the volume group.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- volume
Group StringId - The OCID of the volume group.
getVolumeGroupBackups Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the volume group backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Group List<GetBackups Volume Group Backups Volume Group Backup> - The list of volume_group_backups.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
List<Get
Volume Group Backups Filter> - Volume
Group stringId - The OCID of the source volume group.
- Compartment
Id string - The OCID of the compartment that contains the volume group backup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Group []GetBackups Volume Group Backups Volume Group Backup - The list of volume_group_backups.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Filters
[]Get
Volume Group Backups Filter - Volume
Group stringId - The OCID of the source volume group.
- compartment
Id String - The OCID of the compartment that contains the volume group backup.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Group List<GetBackups Volume Group Backups Volume Group Backup> - The list of volume_group_backups.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
List<Get
Volume Group Backups Filter> - volume
Group StringId - The OCID of the source volume group.
- compartment
Id string - The OCID of the compartment that contains the volume group backup.
- id string
- The provider-assigned unique ID for this managed resource.
- volume
Group GetBackups Volume Group Backups Volume Group Backup[] - The list of volume_group_backups.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters
Get
Volume Group Backups Filter[] - volume
Group 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[core.backups Get 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[core.
Get Volume Group Backups Filter] - volume_
group_ strid - The OCID of the source volume group.
- compartment
Id String - The OCID of the compartment that contains the volume group backup.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Group List<Property Map>Backups - The list of volume_group_backups.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- filters List<Property Map>
- volume
Group StringId - The OCID of the source volume group.
Supporting Types
GetVolumeGroupBackupsFilter
GetVolumeGroupBackupsVolumeGroupBackup
- Compartment
Id 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"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Expiration
Time 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.
- Size
In stringGbs - The aggregate size of the volume group backup, in GBs.
- Size
In stringMbs - The aggregate size of the volume group backup, in MBs.
- Source
Details List<GetVolume Group Backups Volume Group Backup Source Detail> - Source
Type string - Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- Source
Volume stringGroup Backup Id - The OCID of the source volume group backup.
- State string
- The current state of a volume group backup.
- Time
Created 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.
- Time
Request 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.
- Unique
Size 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. - Unique
Size 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. - Volume
Backup List<string>Ids - OCIDs for the volume backups in this volume group backup.
- Volume
Group stringId - The OCID of the volume group.
- Compartment
Id 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"}
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Expiration
Time 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.
- Size
In stringGbs - The aggregate size of the volume group backup, in GBs.
- Size
In stringMbs - The aggregate size of the volume group backup, in MBs.
- Source
Details []GetVolume Group Backups Volume Group Backup Source Detail - Source
Type string - Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- Source
Volume stringGroup Backup Id - The OCID of the source volume group backup.
- State string
- The current state of a volume group backup.
- Time
Created 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.
- Time
Request 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.
- Unique
Size 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. - Unique
Size 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. - Volume
Backup []stringIds - OCIDs for the volume backups in this volume group backup.
- Volume
Group stringId - The OCID of the volume group.
- compartment
Id 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"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- expiration
Time 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.
- size
In StringGbs - The aggregate size of the volume group backup, in GBs.
- size
In StringMbs - The aggregate size of the volume group backup, in MBs.
- source
Details List<GetVolume Group Backups Volume Group Backup Source Detail> - source
Type String - Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- source
Volume StringGroup Backup Id - The OCID of the source volume group backup.
- state String
- The current state of a volume group backup.
- time
Created 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.
- time
Request 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.
- unique
Size 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. - unique
Size 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. - volume
Backup List<String>Ids - OCIDs for the volume backups in this volume group backup.
- volume
Group StringId - The OCID of the volume group.
- compartment
Id 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"}
- display
Name string - A filter to return only resources that match the given display name exactly.
- expiration
Time 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.
- size
In stringGbs - The aggregate size of the volume group backup, in GBs.
- size
In stringMbs - The aggregate size of the volume group backup, in MBs.
- source
Details GetVolume Group Backups Volume Group Backup Source Detail[] - source
Type string - Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- source
Volume stringGroup Backup Id - The OCID of the source volume group backup.
- state string
- The current state of a volume group backup.
- time
Created 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.
- time
Request 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.
- unique
Size 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. - unique
Size 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. - volume
Backup string[]Ids - OCIDs for the volume backups in this volume group backup.
- volume
Group 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[core.Get Volume 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.
- compartment
Id 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"}
- display
Name String - A filter to return only resources that match the given display name exactly.
- expiration
Time 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.
- size
In StringGbs - The aggregate size of the volume group backup, in GBs.
- size
In StringMbs - The aggregate size of the volume group backup, in MBs.
- source
Details List<Property Map> - source
Type String - Specifies whether the volume group backup was created manually, or via scheduled backup policy.
- source
Volume StringGroup Backup Id - The OCID of the source volume group backup.
- state String
- The current state of a volume group backup.
- time
Created 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.
- time
Request 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.
- unique
Size 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. - unique
Size 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. - volume
Backup List<String>Ids - OCIDs for the volume backups in this volume group backup.
- volume
Group StringId - The OCID of the volume group.
GetVolumeGroupBackupsVolumeGroupBackupSourceDetail
- Kms
Key stringId - Region string
- Volume
Group stringBackup Id
- Kms
Key stringId - Region string
- Volume
Group stringBackup Id
- kms
Key StringId - region String
- volume
Group StringBackup Id
- kms
Key stringId - region string
- volume
Group stringBackup Id
- kms_
key_ strid - region str
- volume_
group_ strbackup_ id
- kms
Key StringId - region String
- volume
Group StringBackup Id
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.