Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.backupdisasterrecovery.getBackupPlan
Explore with Pulumi AI
Using getBackupPlan
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 getBackupPlan(args: GetBackupPlanArgs, opts?: InvokeOptions): Promise<GetBackupPlanResult>
function getBackupPlanOutput(args: GetBackupPlanOutputArgs, opts?: InvokeOptions): Output<GetBackupPlanResult>def get_backup_plan(backup_plan_id: Optional[str] = None,
                    location: Optional[str] = None,
                    project: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetBackupPlanResult
def get_backup_plan_output(backup_plan_id: Optional[pulumi.Input[str]] = None,
                    location: Optional[pulumi.Input[str]] = None,
                    project: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetBackupPlanResult]func LookupBackupPlan(ctx *Context, args *LookupBackupPlanArgs, opts ...InvokeOption) (*LookupBackupPlanResult, error)
func LookupBackupPlanOutput(ctx *Context, args *LookupBackupPlanOutputArgs, opts ...InvokeOption) LookupBackupPlanResultOutput> Note: This function is named LookupBackupPlan in the Go SDK.
public static class GetBackupPlan 
{
    public static Task<GetBackupPlanResult> InvokeAsync(GetBackupPlanArgs args, InvokeOptions? opts = null)
    public static Output<GetBackupPlanResult> Invoke(GetBackupPlanInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBackupPlanResult> getBackupPlan(GetBackupPlanArgs args, InvokeOptions options)
public static Output<GetBackupPlanResult> getBackupPlan(GetBackupPlanArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:backupdisasterrecovery/getBackupPlan:getBackupPlan
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BackupPlan stringId 
- Location string
- Project string
- BackupPlan stringId 
- Location string
- Project string
- backupPlan StringId 
- location String
- project String
- backupPlan stringId 
- location string
- project string
- backup_plan_ strid 
- location str
- project str
- backupPlan StringId 
- location String
- project String
getBackupPlan Result
The following output properties are available:
- BackupPlan stringId 
- BackupRules List<GetBackup Plan Backup Rule> 
- BackupVault string
- BackupVault stringService Account 
- CreateTime string
- Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- ResourceType string
- UpdateTime string
- Project string
- BackupPlan stringId 
- BackupRules []GetBackup Plan Backup Rule 
- BackupVault string
- BackupVault stringService Account 
- CreateTime string
- Description string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- ResourceType string
- UpdateTime string
- Project string
- backupPlan StringId 
- backupRules List<GetBackup Plan Backup Rule> 
- backupVault String
- backupVault StringService Account 
- createTime String
- description String
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resourceType String
- updateTime String
- project String
- backupPlan stringId 
- backupRules GetBackup Plan Backup Rule[] 
- backupVault string
- backupVault stringService Account 
- createTime string
- description string
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- resourceType string
- updateTime string
- project string
- backup_plan_ strid 
- backup_rules Sequence[GetBackup Plan Backup Rule] 
- backup_vault str
- backup_vault_ strservice_ account 
- create_time str
- description str
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- resource_type str
- update_time str
- project str
- backupPlan StringId 
- backupRules List<Property Map>
- backupVault String
- backupVault StringService Account 
- createTime String
- description String
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- resourceType String
- updateTime String
- project String
Supporting Types
GetBackupPlanBackupRule    
- BackupRetention intDays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- RuleId string
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- StandardSchedules List<GetBackup Plan Backup Rule Standard Schedule> 
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
- BackupRetention intDays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- RuleId string
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- StandardSchedules []GetBackup Plan Backup Rule Standard Schedule 
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
- backupRetention IntegerDays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- ruleId String
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- standardSchedules List<GetBackup Plan Backup Rule Standard Schedule> 
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
- backupRetention numberDays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- ruleId string
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- standardSchedules GetBackup Plan Backup Rule Standard Schedule[] 
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
- backup_retention_ intdays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- rule_id str
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- standard_schedules Sequence[GetBackup Plan Backup Rule Standard Schedule] 
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
- backupRetention NumberDays 
- Configures the duration for which backup data will be kept. The value should be greater than or equal to minimum enforced retention of the backup vault.
- ruleId String
- The unique ID of this 'BackupRule'. The 'rule_id' is unique per 'BackupPlan'.
- standardSchedules List<Property Map>
- StandardSchedule defines a schedule that runs within the confines of a defined window of days.
GetBackupPlanBackupRuleStandardSchedule      
- BackupWindows List<GetBackup Plan Backup Rule Standard Schedule Backup Window> 
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- DaysOf List<int>Months 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- DaysOf List<string>Weeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- HourlyFrequency int
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- Months List<string>
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- RecurrenceType string
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- TimeZone string
- The time zone to be used when interpreting the schedule.
- WeekDay List<GetOf Months Backup Plan Backup Rule Standard Schedule Week Day Of Month> 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
- BackupWindows []GetBackup Plan Backup Rule Standard Schedule Backup Window 
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- DaysOf []intMonths 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- DaysOf []stringWeeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- HourlyFrequency int
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- Months []string
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- RecurrenceType string
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- TimeZone string
- The time zone to be used when interpreting the schedule.
- WeekDay []GetOf Months Backup Plan Backup Rule Standard Schedule Week Day Of Month 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
- backupWindows List<GetBackup Plan Backup Rule Standard Schedule Backup Window> 
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- daysOf List<Integer>Months 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- daysOf List<String>Weeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- hourlyFrequency Integer
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- months List<String>
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- recurrenceType String
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- timeZone String
- The time zone to be used when interpreting the schedule.
- weekDay List<GetOf Months Backup Plan Backup Rule Standard Schedule Week Day Of Month> 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
- backupWindows GetBackup Plan Backup Rule Standard Schedule Backup Window[] 
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- daysOf number[]Months 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- daysOf string[]Weeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- hourlyFrequency number
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- months string[]
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- recurrenceType string
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- timeZone string
- The time zone to be used when interpreting the schedule.
- weekDay GetOf Months Backup Plan Backup Rule Standard Schedule Week Day Of Month[] 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
- backup_windows Sequence[GetBackup Plan Backup Rule Standard Schedule Backup Window] 
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- days_of_ Sequence[int]months 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- days_of_ Sequence[str]weeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- hourly_frequency int
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- months Sequence[str]
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- recurrence_type str
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- time_zone str
- The time zone to be used when interpreting the schedule.
- week_day_ Sequence[Getof_ months Backup Plan Backup Rule Standard Schedule Week Day Of Month] 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
- backupWindows List<Property Map>
- A BackupWindow defines the window of the day during which backup jobs will run. Jobs are queued at the beginning of the window and will be marked as 'NOT_RUN' if they do not start by the end of the window.
- daysOf List<Number>Months 
- Specifies days of months like 1, 5, or 14 on which jobs will run.
- daysOf List<String>Weeks 
- Specifies days of week like MONDAY or TUESDAY, on which jobs will run. This is required for 'recurrence_type', 'WEEKLY' and is not applicable otherwise. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY"]
- hourlyFrequency Number
- Specifies frequency for hourly backups. An hourly frequency of 2 means jobs will run every 2 hours from start time till end time defined. This is required for 'recurrence_type', 'HOURLY' and is not applicable otherwise.
- months List<String>
- Specifies values of months Possible values: ["MONTH_UNSPECIFIED", "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER"]
- recurrenceType String
- RecurrenceType enumerates the applicable periodicity for the schedule. Possible values: ["HOURLY", "DAILY", "WEEKLY", "MONTHLY", "YEARLY"]
- timeZone String
- The time zone to be used when interpreting the schedule.
- weekDay List<Property Map>Of Months 
- Specifies a week day of the month like FIRST SUNDAY or LAST MONDAY, on which jobs will run.
GetBackupPlanBackupRuleStandardScheduleBackupWindow        
- EndHour intOf Day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- StartHour intOf Day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
- EndHour intOf Day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- StartHour intOf Day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
- endHour IntegerOf Day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- startHour IntegerOf Day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
- endHour numberOf Day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- startHour numberOf Day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
- end_hour_ intof_ day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- start_hour_ intof_ day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
- endHour NumberOf Day 
- The hour of the day (1-24) when the window ends, for example, if the value of end hour of the day is 10, that means the backup window end time is 10:00. The end hour of the day should be greater than the start
- startHour NumberOf Day 
- The hour of the day (0-23) when the window starts, for example, if the value of the start hour of the day is 6, that means the backup window starts at 6:00.
GetBackupPlanBackupRuleStandardScheduleWeekDayOfMonth          
- DayOf stringWeek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- WeekOf stringMonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
- DayOf stringWeek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- WeekOf stringMonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
- dayOf StringWeek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- weekOf StringMonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
- dayOf stringWeek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- weekOf stringMonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
- day_of_ strweek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- week_of_ strmonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
- dayOf StringWeek 
- Specifies the day of the week. Possible values: ["DAY_OF_WEEK_UNSPECIFIED", "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
- weekOf StringMonth 
- WeekOfMonth enumerates possible weeks in the month, e.g. the first, third, or last week of the month. Possible values: ["WEEK_OF_MONTH_UNSPECIFIED", "FIRST", "SECOND", "THIRD", "FOURTH", "LAST"]
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.