Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getVolumeBackupPolicies
Explore with Pulumi AI
This data source provides the list of Volume Backup Policies in Oracle Cloud Infrastructure Core service.
Lists all the volume backup policies available in the specified compartment.
For more information about Oracle defined backup policies and user defined backup policies, see Policy-Based Backups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testVolumeBackupPolicies = oci.Core.getVolumeBackupPolicies({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_volume_backup_policies = oci.Core.get_volume_backup_policies(compartment_id=compartment_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.GetVolumeBackupPolicies(ctx, &core.GetVolumeBackupPoliciesArgs{
CompartmentId: pulumi.StringRef(compartmentId),
}, 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 testVolumeBackupPolicies = Oci.Core.GetVolumeBackupPolicies.Invoke(new()
{
CompartmentId = compartmentId,
});
});
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.GetVolumeBackupPoliciesArgs;
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 testVolumeBackupPolicies = CoreFunctions.getVolumeBackupPolicies(GetVolumeBackupPoliciesArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testVolumeBackupPolicies:
fn::invoke:
Function: oci:Core:getVolumeBackupPolicies
Arguments:
compartmentId: ${compartmentId}
Using getVolumeBackupPolicies
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 getVolumeBackupPolicies(args: GetVolumeBackupPoliciesArgs, opts?: InvokeOptions): Promise<GetVolumeBackupPoliciesResult>
function getVolumeBackupPoliciesOutput(args: GetVolumeBackupPoliciesOutputArgs, opts?: InvokeOptions): Output<GetVolumeBackupPoliciesResult>
def get_volume_backup_policies(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetVolumeBackupPoliciesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeBackupPoliciesResult
def get_volume_backup_policies_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetVolumeBackupPoliciesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeBackupPoliciesResult]
func GetVolumeBackupPolicies(ctx *Context, args *GetVolumeBackupPoliciesArgs, opts ...InvokeOption) (*GetVolumeBackupPoliciesResult, error)
func GetVolumeBackupPoliciesOutput(ctx *Context, args *GetVolumeBackupPoliciesOutputArgs, opts ...InvokeOption) GetVolumeBackupPoliciesResultOutput
> Note: This function is named GetVolumeBackupPolicies
in the Go SDK.
public static class GetVolumeBackupPolicies
{
public static Task<GetVolumeBackupPoliciesResult> InvokeAsync(GetVolumeBackupPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeBackupPoliciesResult> Invoke(GetVolumeBackupPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVolumeBackupPoliciesResult> getVolumeBackupPolicies(GetVolumeBackupPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getVolumeBackupPolicies:getVolumeBackupPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- Filters
List<Get
Volume Backup Policies Filter>
- Compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- Filters
[]Get
Volume Backup Policies Filter
- compartment
Id String - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- filters
List<Get
Volume Backup Policies Filter>
- compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- filters
Get
Volume Backup Policies Filter[]
- compartment_
id str - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- filters
Sequence[core.
Get Volume Backup Policies Filter]
- compartment
Id String - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- filters List<Property Map>
getVolumeBackupPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Backup List<GetPolicies Volume Backup Policies Volume Backup Policy> - The list of volume_backup_policies.
- Compartment
Id string - The OCID of the compartment that contains the volume backup.
- Filters
List<Get
Volume Backup Policies Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Backup []GetPolicies Volume Backup Policies Volume Backup Policy - The list of volume_backup_policies.
- Compartment
Id string - The OCID of the compartment that contains the volume backup.
- Filters
[]Get
Volume Backup Policies Filter
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Backup List<GetPolicies Volume Backup Policies Volume Backup Policy> - The list of volume_backup_policies.
- compartment
Id String - The OCID of the compartment that contains the volume backup.
- filters
List<Get
Volume Backup Policies Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- volume
Backup GetPolicies Volume Backup Policies Volume Backup Policy[] - The list of volume_backup_policies.
- compartment
Id string - The OCID of the compartment that contains the volume backup.
- filters
Get
Volume Backup Policies Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- volume_
backup_ Sequence[core.policies Get Volume Backup Policies Volume Backup Policy] - The list of volume_backup_policies.
- compartment_
id str - The OCID of the compartment that contains the volume backup.
- filters
Sequence[core.
Get Volume Backup Policies Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Backup List<Property Map>Policies - The list of volume_backup_policies.
- compartment
Id String - The OCID of the compartment that contains the volume backup.
- filters List<Property Map>
Supporting Types
GetVolumeBackupPoliciesFilter
GetVolumeBackupPoliciesVolumeBackupPolicy
- Compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- 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"}
- Destination
Region string - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the volume backup policy.
- Schedules
List<Get
Volume Backup Policies Volume Backup Policy Schedule> - The collection of schedules that this policy will apply.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- Compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- 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"}
- Destination
Region string - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The OCID of the volume backup policy.
- Schedules
[]Get
Volume Backup Policies Volume Backup Policy Schedule - The collection of schedules that this policy will apply.
- Time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- 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"}
- destination
Region String - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the volume backup policy.
- schedules
List<Get
Volume Backup Policies Volume Backup Policy Schedule> - The collection of schedules that this policy will apply.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id string - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- {[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"}
- destination
Region string - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The OCID of the volume backup policy.
- schedules
Get
Volume Backup Policies Volume Backup Policy Schedule[] - The collection of schedules that this policy will apply.
- time
Created string - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment_
id str - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- 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"}
- destination_
region str - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The OCID of the volume backup policy.
- schedules
Sequence[core.
Get Volume Backup Policies Volume Backup Policy Schedule] - The collection of schedules that this policy will apply.
- time_
created str - The date and time the volume backup policy was created. Format defined by RFC3339.
- compartment
Id String - The OCID of the compartment. If no compartment is specified, the Oracle defined backup policies are listed.
- 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"}
- destination
Region String - The paired destination region for copying scheduled backups to. Example
us-ashburn-1
. See Region Pairs for details about paired regions. - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The OCID of the volume backup policy.
- schedules List<Property Map>
- The collection of schedules that this policy will apply.
- time
Created String - The date and time the volume backup policy was created. Format defined by RFC3339.
GetVolumeBackupPoliciesVolumeBackupPolicySchedule
- Backup
Type string - The type of volume backup to create.
- Day
Of intMonth - The day of the month to schedule the volume backup.
- Day
Of stringWeek - The day of the week to schedule the volume backup.
- Hour
Of intDay - The hour of the day to schedule the volume backup.
- Month string
- The month of the year to schedule the volume backup.
- Offset
Seconds int - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- Offset
Type string - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - Period string
- The volume backup frequency.
- Retention
Seconds int - How long, in seconds, to keep the volume backups created by this schedule.
- Time
Zone string - Specifies what time zone is the schedule in
- Backup
Type string - The type of volume backup to create.
- Day
Of intMonth - The day of the month to schedule the volume backup.
- Day
Of stringWeek - The day of the week to schedule the volume backup.
- Hour
Of intDay - The hour of the day to schedule the volume backup.
- Month string
- The month of the year to schedule the volume backup.
- Offset
Seconds int - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- Offset
Type string - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - Period string
- The volume backup frequency.
- Retention
Seconds int - How long, in seconds, to keep the volume backups created by this schedule.
- Time
Zone string - Specifies what time zone is the schedule in
- backup
Type String - The type of volume backup to create.
- day
Of IntegerMonth - The day of the month to schedule the volume backup.
- day
Of StringWeek - The day of the week to schedule the volume backup.
- hour
Of IntegerDay - The hour of the day to schedule the volume backup.
- month String
- The month of the year to schedule the volume backup.
- offset
Seconds Integer - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type String - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - period String
- The volume backup frequency.
- retention
Seconds Integer - How long, in seconds, to keep the volume backups created by this schedule.
- time
Zone String - Specifies what time zone is the schedule in
- backup
Type string - The type of volume backup to create.
- day
Of numberMonth - The day of the month to schedule the volume backup.
- day
Of stringWeek - The day of the week to schedule the volume backup.
- hour
Of numberDay - The hour of the day to schedule the volume backup.
- month string
- The month of the year to schedule the volume backup.
- offset
Seconds number - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type string - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - period string
- The volume backup frequency.
- retention
Seconds number - How long, in seconds, to keep the volume backups created by this schedule.
- time
Zone string - Specifies what time zone is the schedule in
- backup_
type str - The type of volume backup to create.
- day_
of_ intmonth - The day of the month to schedule the volume backup.
- day_
of_ strweek - The day of the week to schedule the volume backup.
- hour_
of_ intday - The hour of the day to schedule the volume backup.
- month str
- The month of the year to schedule the volume backup.
- offset_
seconds int - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset_
type str - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - period str
- The volume backup frequency.
- retention_
seconds int - How long, in seconds, to keep the volume backups created by this schedule.
- time_
zone str - Specifies what time zone is the schedule in
- backup
Type String - The type of volume backup to create.
- day
Of NumberMonth - The day of the month to schedule the volume backup.
- day
Of StringWeek - The day of the week to schedule the volume backup.
- hour
Of NumberDay - The hour of the day to schedule the volume backup.
- month String
- The month of the year to schedule the volume backup.
- offset
Seconds Number - The number of seconds that the volume backup start time should be shifted from the default interval boundaries specified by the period. The volume backup start time is the frequency start time plus the offset.
- offset
Type String - Indicates how the offset is defined. If value is
STRUCTURED
, thenhourOfDay
,dayOfWeek
,dayOfMonth
, andmonth
fields are used andoffsetSeconds
will be ignored in requests and users should ignore its value from the responses. - period String
- The volume backup frequency.
- retention
Seconds Number - How long, in seconds, to keep the volume backups created by this schedule.
- time
Zone String - Specifies what time zone is the schedule in
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.