oci.Core.VolumeGroupBackup
Explore with Pulumi AI
This resource provides the Volume Group Backup resource in Oracle Cloud Infrastructure Core service.
Creates a new backup volume group of the specified volume group. For more information, see Volume Groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeGroupBackup = new oci.core.VolumeGroupBackup("test_volume_group_backup", {
volumeGroupId: testVolumeGroup.id,
compartmentId: compartmentId,
definedTags: {
"Operations.CostCenter": "42",
},
displayName: volumeGroupBackupDisplayName,
freeformTags: {
Department: "Finance",
},
type: volumeGroupBackupType,
});
import pulumi
import pulumi_oci as oci
test_volume_group_backup = oci.core.VolumeGroupBackup("test_volume_group_backup",
volume_group_id=test_volume_group["id"],
compartment_id=compartment_id,
defined_tags={
"Operations.CostCenter": "42",
},
display_name=volume_group_backup_display_name,
freeform_tags={
"Department": "Finance",
},
type=volume_group_backup_type)
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.NewVolumeGroupBackup(ctx, "test_volume_group_backup", &Core.VolumeGroupBackupArgs{
VolumeGroupId: pulumi.Any(testVolumeGroup.Id),
CompartmentId: pulumi.Any(compartmentId),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DisplayName: pulumi.Any(volumeGroupBackupDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
Type: pulumi.Any(volumeGroupBackupType),
})
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 testVolumeGroupBackup = new Oci.Core.VolumeGroupBackup("test_volume_group_backup", new()
{
VolumeGroupId = testVolumeGroup.Id,
CompartmentId = compartmentId,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = volumeGroupBackupDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
Type = volumeGroupBackupType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.VolumeGroupBackup;
import com.pulumi.oci.Core.VolumeGroupBackupArgs;
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) {
var testVolumeGroupBackup = new VolumeGroupBackup("testVolumeGroupBackup", VolumeGroupBackupArgs.builder()
.volumeGroupId(testVolumeGroup.id())
.compartmentId(compartmentId)
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(volumeGroupBackupDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.type(volumeGroupBackupType)
.build());
}
}
resources:
testVolumeGroupBackup:
type: oci:Core:VolumeGroupBackup
name: test_volume_group_backup
properties:
volumeGroupId: ${testVolumeGroup.id}
compartmentId: ${compartmentId}
definedTags:
Operations.CostCenter: '42'
displayName: ${volumeGroupBackupDisplayName}
freeformTags:
Department: Finance
type: ${volumeGroupBackupType}
Create VolumeGroupBackup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VolumeGroupBackup(name: string, args?: VolumeGroupBackupArgs, opts?: CustomResourceOptions);
@overload
def VolumeGroupBackup(resource_name: str,
args: Optional[VolumeGroupBackupArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def VolumeGroupBackup(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
source_details: Optional[_core.VolumeGroupBackupSourceDetailsArgs] = None,
type: Optional[str] = None,
volume_group_id: Optional[str] = None)
func NewVolumeGroupBackup(ctx *Context, name string, args *VolumeGroupBackupArgs, opts ...ResourceOption) (*VolumeGroupBackup, error)
public VolumeGroupBackup(string name, VolumeGroupBackupArgs? args = null, CustomResourceOptions? opts = null)
public VolumeGroupBackup(String name, VolumeGroupBackupArgs args)
public VolumeGroupBackup(String name, VolumeGroupBackupArgs args, CustomResourceOptions options)
type: oci:Core:VolumeGroupBackup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VolumeGroupBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VolumeGroupBackupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VolumeGroupBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeGroupBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeGroupBackupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volumeGroupBackupResource = new Oci.Core.VolumeGroupBackup("volumeGroupBackupResource", new()
{
CompartmentId = "string",
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
SourceDetails = new Oci.Core.Inputs.VolumeGroupBackupSourceDetailsArgs
{
Region = "string",
VolumeGroupBackupId = "string",
KmsKeyId = "string",
},
Type = "string",
VolumeGroupId = "string",
});
example, err := Core.NewVolumeGroupBackup(ctx, "volumeGroupBackupResource", &Core.VolumeGroupBackupArgs{
CompartmentId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
SourceDetails: &core.VolumeGroupBackupSourceDetailsArgs{
Region: pulumi.String("string"),
VolumeGroupBackupId: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
},
Type: pulumi.String("string"),
VolumeGroupId: pulumi.String("string"),
})
var volumeGroupBackupResource = new VolumeGroupBackup("volumeGroupBackupResource", VolumeGroupBackupArgs.builder()
.compartmentId("string")
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.sourceDetails(VolumeGroupBackupSourceDetailsArgs.builder()
.region("string")
.volumeGroupBackupId("string")
.kmsKeyId("string")
.build())
.type("string")
.volumeGroupId("string")
.build());
volume_group_backup_resource = oci.core.VolumeGroupBackup("volumeGroupBackupResource",
compartment_id="string",
defined_tags={
"string": "string",
},
display_name="string",
freeform_tags={
"string": "string",
},
source_details={
"region": "string",
"volume_group_backup_id": "string",
"kms_key_id": "string",
},
type="string",
volume_group_id="string")
const volumeGroupBackupResource = new oci.core.VolumeGroupBackup("volumeGroupBackupResource", {
compartmentId: "string",
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
sourceDetails: {
region: "string",
volumeGroupBackupId: "string",
kmsKeyId: "string",
},
type: "string",
volumeGroupId: "string",
});
type: oci:Core:VolumeGroupBackup
properties:
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
sourceDetails:
kmsKeyId: string
region: string
volumeGroupBackupId: string
type: string
volumeGroupId: string
VolumeGroupBackup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The VolumeGroupBackup resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Dictionary<string, string>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Source
Details VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- Type string
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- Volume
Group stringId - The OCID of the volume group that needs to be backed up.
- Compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- map[string]string
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Source
Details VolumeGroup Backup Source Details Args - Details of the volume group backup source in the cloud.
- Type string
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- Volume
Group stringId - The OCID of the volume group that needs to be backed up.
- compartment
Id String - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Map<String,String>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- source
Details VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- type String
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- volume
Group StringId - The OCID of the volume group that needs to be backed up.
- compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- {[key: string]: string}
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- source
Details VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- type string
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- volume
Group stringId - The OCID of the volume group that needs to be backed up.
- compartment_
id str - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Mapping[str, str]
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- source_
details core.Volume Group Backup Source Details Args - Details of the volume group backup source in the cloud.
- type str
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- volume_
group_ strid - The OCID of the volume group that needs to be backed up.
- compartment
Id String - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Map<String>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- source
Details Property Map - Details of the volume group backup source in the cloud.
- type String
- The type of backup to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- volume
Group StringId - The OCID of the volume group that needs to be backed up.
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeGroupBackup resource produces the following output properties:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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_
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.
- 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.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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
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.
- 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.
Look up Existing VolumeGroupBackup Resource
Get an existing VolumeGroupBackup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: VolumeGroupBackupState, opts?: CustomResourceOptions): VolumeGroupBackup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
expiration_time: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
size_in_gbs: Optional[str] = None,
size_in_mbs: Optional[str] = None,
source_details: Optional[_core.VolumeGroupBackupSourceDetailsArgs] = None,
source_type: Optional[str] = None,
source_volume_group_backup_id: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_request_received: Optional[str] = None,
type: Optional[str] = None,
unique_size_in_gbs: Optional[str] = None,
unique_size_in_mbs: Optional[str] = None,
volume_backup_ids: Optional[Sequence[str]] = None,
volume_group_id: Optional[str] = None) -> VolumeGroupBackup
func GetVolumeGroupBackup(ctx *Context, name string, id IDInput, state *VolumeGroupBackupState, opts ...ResourceOption) (*VolumeGroupBackup, error)
public static VolumeGroupBackup Get(string name, Input<string> id, VolumeGroupBackupState? state, CustomResourceOptions? opts = null)
public static VolumeGroupBackup get(String name, Output<String> id, VolumeGroupBackupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Dictionary<string, string>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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>
- (Updatable) 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"}
- 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 VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
- Compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- map[string]string
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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
- (Updatable) 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"}
- 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 VolumeGroup Backup Source Details Args - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
- compartment
Id String - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Map<String,String>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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>
- (Updatable) 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"}
- 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 VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
- compartment
Id string - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- {[key: string]: string}
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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}
- (Updatable) 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"}
- 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 VolumeGroup Backup Source Details - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
- compartment_
id str - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Mapping[str, str]
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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]
- (Updatable) 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"}
- 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 core.Volume Group Backup Source Details Args - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
- compartment
Id String - (Updatable) The OCID of the compartment that will contain the volume group backup. This parameter is optional, by default backup will be created in the same compartment and source volume group.
- Map<String>
- (Updatable) 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 - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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>
- (Updatable) 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"}
- 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 Property Map - Details of the volume group backup source in the cloud.
- 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 to create. If omitted, defaults to incremental.
- Allowed values are :
- FULL
- INCREMENTAL
- 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 that needs to be backed up.
Supporting Types
VolumeGroupBackupSourceDetails, VolumeGroupBackupSourceDetailsArgs
- Region string
- The region of the volume backup source.
- Volume
Group stringBackup Id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Kms
Key stringId - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
- Region string
- The region of the volume backup source.
- Volume
Group stringBackup Id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Kms
Key stringId - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
- region String
- The region of the volume backup source.
- volume
Group StringBackup Id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- kms
Key StringId - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
- region string
- The region of the volume backup source.
- volume
Group stringBackup Id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- kms
Key stringId - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
- region str
- The region of the volume backup source.
- volume_
group_ strbackup_ id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- kms_
key_ strid - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
- region String
- The region of the volume backup source.
- volume
Group StringBackup Id The OCID of the source volume group backup.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- kms
Key StringId - The OCID of the KMS key in the destination region which will be the master encryption key for the copied volume backup.
Import
VolumeGroupBackups can be imported using the id
, e.g.
$ pulumi import oci:Core/volumeGroupBackup:VolumeGroupBackup test_volume_group_backup "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.