1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. getResourcePolicy
Google Cloud Classic v7.27.0 published on Thursday, Jun 13, 2024 by Pulumi

gcp.compute.getResourcePolicy

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.27.0 published on Thursday, Jun 13, 2024 by Pulumi

    Provide access to a Resource Policy’s attributes. For more information see the official documentation or the API.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const daily = gcp.compute.getResourcePolicy({
        name: "daily",
        region: "us-central1",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    daily = gcp.compute.get_resource_policy(name="daily",
        region="us-central1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := compute.LookupResourcePolicy(ctx, &compute.LookupResourcePolicyArgs{
    			Name:   "daily",
    			Region: pulumi.StringRef("us-central1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var daily = Gcp.Compute.GetResourcePolicy.Invoke(new()
        {
            Name = "daily",
            Region = "us-central1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.compute.ComputeFunctions;
    import com.pulumi.gcp.compute.inputs.GetResourcePolicyArgs;
    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 daily = ComputeFunctions.getResourcePolicy(GetResourcePolicyArgs.builder()
                .name("daily")
                .region("us-central1")
                .build());
    
        }
    }
    
    variables:
      daily:
        fn::invoke:
          Function: gcp:compute:getResourcePolicy
          Arguments:
            name: daily
            region: us-central1
    

    Using getResourcePolicy

    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 getResourcePolicy(args: GetResourcePolicyArgs, opts?: InvokeOptions): Promise<GetResourcePolicyResult>
    function getResourcePolicyOutput(args: GetResourcePolicyOutputArgs, opts?: InvokeOptions): Output<GetResourcePolicyResult>
    def get_resource_policy(name: Optional[str] = None,
                            project: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetResourcePolicyResult
    def get_resource_policy_output(name: Optional[pulumi.Input[str]] = None,
                            project: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetResourcePolicyResult]
    func LookupResourcePolicy(ctx *Context, args *LookupResourcePolicyArgs, opts ...InvokeOption) (*LookupResourcePolicyResult, error)
    func LookupResourcePolicyOutput(ctx *Context, args *LookupResourcePolicyOutputArgs, opts ...InvokeOption) LookupResourcePolicyResultOutput

    > Note: This function is named LookupResourcePolicy in the Go SDK.

    public static class GetResourcePolicy 
    {
        public static Task<GetResourcePolicyResult> InvokeAsync(GetResourcePolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetResourcePolicyResult> Invoke(GetResourcePolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: gcp:compute/getResourcePolicy:getResourcePolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Resource Policy.
    Project string
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    Region string
    Region where the Resource Policy resides.
    Name string
    The name of the Resource Policy.
    Project string
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    Region string
    Region where the Resource Policy resides.
    name String
    The name of the Resource Policy.
    project String
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    region String
    Region where the Resource Policy resides.
    name string
    The name of the Resource Policy.
    project string
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    region string
    Region where the Resource Policy resides.
    name str
    The name of the Resource Policy.
    project str
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    region str
    Region where the Resource Policy resides.
    name String
    The name of the Resource Policy.
    project String
    Project from which to list the Resource Policy. Defaults to project declared in the provider.
    region String
    Region where the Resource Policy resides.

    getResourcePolicy Result

    The following output properties are available:

    description String
    Description of this Resource Policy.
    diskConsistencyGroupPolicies List<Property Map>
    groupPlacementPolicies List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.
    instanceSchedulePolicies List<Property Map>
    name String
    selfLink String
    The URI of the resource.
    snapshotSchedulePolicies List<Property Map>
    project String
    region String

    Supporting Types

    GetResourcePolicyDiskConsistencyGroupPolicy

    Enabled bool
    Enable disk consistency on the resource policy.
    Enabled bool
    Enable disk consistency on the resource policy.
    enabled Boolean
    Enable disk consistency on the resource policy.
    enabled boolean
    Enable disk consistency on the resource policy.
    enabled bool
    Enable disk consistency on the resource policy.
    enabled Boolean
    Enable disk consistency on the resource policy.

    GetResourcePolicyGroupPlacementPolicy

    AvailabilityDomainCount int
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    Collocation string
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    MaxDistance int
    Specifies the number of max logical switches.
    VmCount int
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
    AvailabilityDomainCount int
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    Collocation string
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    MaxDistance int
    Specifies the number of max logical switches.
    VmCount int
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
    availabilityDomainCount Integer
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    collocation String
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    maxDistance Integer
    Specifies the number of max logical switches.
    vmCount Integer
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
    availabilityDomainCount number
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    collocation string
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    maxDistance number
    Specifies the number of max logical switches.
    vmCount number
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
    availability_domain_count int
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    collocation str
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    max_distance int
    Specifies the number of max logical switches.
    vm_count int
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.
    availabilityDomainCount Number
    The number of availability domains instances will be spread across. If two instances are in different availability domain, they will not be put in the same low latency network
    collocation String
    Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network. Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy attached. Possible values: ["COLLOCATED"]
    maxDistance Number
    Specifies the number of max logical switches.
    vmCount Number
    Number of VMs in this placement group. Google does not recommend that you use this field unless you use a compact policy and you want your policy to work only if it contains this exact number of VMs.

    GetResourcePolicyInstanceSchedulePolicy

    ExpirationTime string
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    StartTime string
    The start time of the schedule. The timestamp is an RFC3339 string.
    TimeZone string
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    VmStartSchedules List<GetResourcePolicyInstanceSchedulePolicyVmStartSchedule>
    Specifies the schedule for starting instances.
    VmStopSchedules List<GetResourcePolicyInstanceSchedulePolicyVmStopSchedule>
    Specifies the schedule for stopping instances.
    ExpirationTime string
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    StartTime string
    The start time of the schedule. The timestamp is an RFC3339 string.
    TimeZone string
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    VmStartSchedules []GetResourcePolicyInstanceSchedulePolicyVmStartSchedule
    Specifies the schedule for starting instances.
    VmStopSchedules []GetResourcePolicyInstanceSchedulePolicyVmStopSchedule
    Specifies the schedule for stopping instances.
    expirationTime String
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    startTime String
    The start time of the schedule. The timestamp is an RFC3339 string.
    timeZone String
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    vmStartSchedules List<GetResourcePolicyInstanceSchedulePolicyVmStartSchedule>
    Specifies the schedule for starting instances.
    vmStopSchedules List<GetResourcePolicyInstanceSchedulePolicyVmStopSchedule>
    Specifies the schedule for stopping instances.
    expirationTime string
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    startTime string
    The start time of the schedule. The timestamp is an RFC3339 string.
    timeZone string
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    vmStartSchedules GetResourcePolicyInstanceSchedulePolicyVmStartSchedule[]
    Specifies the schedule for starting instances.
    vmStopSchedules GetResourcePolicyInstanceSchedulePolicyVmStopSchedule[]
    Specifies the schedule for stopping instances.
    expiration_time str
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    start_time str
    The start time of the schedule. The timestamp is an RFC3339 string.
    time_zone str
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    vm_start_schedules Sequence[GetResourcePolicyInstanceSchedulePolicyVmStartSchedule]
    Specifies the schedule for starting instances.
    vm_stop_schedules Sequence[GetResourcePolicyInstanceSchedulePolicyVmStopSchedule]
    Specifies the schedule for stopping instances.
    expirationTime String
    The expiration time of the schedule. The timestamp is an RFC3339 string.
    startTime String
    The start time of the schedule. The timestamp is an RFC3339 string.
    timeZone String
    Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
    vmStartSchedules List<Property Map>
    Specifies the schedule for starting instances.
    vmStopSchedules List<Property Map>
    Specifies the schedule for stopping instances.

    GetResourcePolicyInstanceSchedulePolicyVmStartSchedule

    Schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    Schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    schedule String
    Specifies the frequency for the operation, using the unix-cron format.
    schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    schedule str
    Specifies the frequency for the operation, using the unix-cron format.
    schedule String
    Specifies the frequency for the operation, using the unix-cron format.

    GetResourcePolicyInstanceSchedulePolicyVmStopSchedule

    Schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    Schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    schedule String
    Specifies the frequency for the operation, using the unix-cron format.
    schedule string
    Specifies the frequency for the operation, using the unix-cron format.
    schedule str
    Specifies the frequency for the operation, using the unix-cron format.
    schedule String
    Specifies the frequency for the operation, using the unix-cron format.

    GetResourcePolicySnapshotSchedulePolicy

    RetentionPolicies List<GetResourcePolicySnapshotSchedulePolicyRetentionPolicy>
    Retention policy applied to snapshots created by this resource policy.
    Schedules List<GetResourcePolicySnapshotSchedulePolicySchedule>
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    SnapshotProperties List<GetResourcePolicySnapshotSchedulePolicySnapshotProperty>
    Properties with which the snapshots are created, such as labels.
    RetentionPolicies []GetResourcePolicySnapshotSchedulePolicyRetentionPolicy
    Retention policy applied to snapshots created by this resource policy.
    Schedules []GetResourcePolicySnapshotSchedulePolicySchedule
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    SnapshotProperties []GetResourcePolicySnapshotSchedulePolicySnapshotProperty
    Properties with which the snapshots are created, such as labels.
    retentionPolicies List<GetResourcePolicySnapshotSchedulePolicyRetentionPolicy>
    Retention policy applied to snapshots created by this resource policy.
    schedules List<GetResourcePolicySnapshotSchedulePolicySchedule>
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    snapshotProperties List<GetResourcePolicySnapshotSchedulePolicySnapshotProperty>
    Properties with which the snapshots are created, such as labels.
    retentionPolicies GetResourcePolicySnapshotSchedulePolicyRetentionPolicy[]
    Retention policy applied to snapshots created by this resource policy.
    schedules GetResourcePolicySnapshotSchedulePolicySchedule[]
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    snapshotProperties GetResourcePolicySnapshotSchedulePolicySnapshotProperty[]
    Properties with which the snapshots are created, such as labels.
    retention_policies Sequence[GetResourcePolicySnapshotSchedulePolicyRetentionPolicy]
    Retention policy applied to snapshots created by this resource policy.
    schedules Sequence[GetResourcePolicySnapshotSchedulePolicySchedule]
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    snapshot_properties Sequence[GetResourcePolicySnapshotSchedulePolicySnapshotProperty]
    Properties with which the snapshots are created, such as labels.
    retentionPolicies List<Property Map>
    Retention policy applied to snapshots created by this resource policy.
    schedules List<Property Map>
    Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
    snapshotProperties List<Property Map>
    Properties with which the snapshots are created, such as labels.

    GetResourcePolicySnapshotSchedulePolicyRetentionPolicy

    MaxRetentionDays int
    Maximum age of the snapshot that is allowed to be kept.
    OnSourceDiskDelete string
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
    MaxRetentionDays int
    Maximum age of the snapshot that is allowed to be kept.
    OnSourceDiskDelete string
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
    maxRetentionDays Integer
    Maximum age of the snapshot that is allowed to be kept.
    onSourceDiskDelete String
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
    maxRetentionDays number
    Maximum age of the snapshot that is allowed to be kept.
    onSourceDiskDelete string
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
    max_retention_days int
    Maximum age of the snapshot that is allowed to be kept.
    on_source_disk_delete str
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]
    maxRetentionDays Number
    Maximum age of the snapshot that is allowed to be kept.
    onSourceDiskDelete String
    Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"]

    GetResourcePolicySnapshotSchedulePolicySchedule

    DailySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule>
    The policy will execute every nth day at the specified time.
    HourlySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule>
    The policy will execute every nth hour starting at the specified time.
    WeeklySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule>
    Allows specifying a snapshot time for each day of the week.
    DailySchedules []GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule
    The policy will execute every nth day at the specified time.
    HourlySchedules []GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule
    The policy will execute every nth hour starting at the specified time.
    WeeklySchedules []GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule
    Allows specifying a snapshot time for each day of the week.
    dailySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule>
    The policy will execute every nth day at the specified time.
    hourlySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule>
    The policy will execute every nth hour starting at the specified time.
    weeklySchedules List<GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule>
    Allows specifying a snapshot time for each day of the week.
    dailySchedules GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule[]
    The policy will execute every nth day at the specified time.
    hourlySchedules GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule[]
    The policy will execute every nth hour starting at the specified time.
    weeklySchedules GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule[]
    Allows specifying a snapshot time for each day of the week.
    daily_schedules Sequence[GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule]
    The policy will execute every nth day at the specified time.
    hourly_schedules Sequence[GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule]
    The policy will execute every nth hour starting at the specified time.
    weekly_schedules Sequence[GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule]
    Allows specifying a snapshot time for each day of the week.
    dailySchedules List<Property Map>
    The policy will execute every nth day at the specified time.
    hourlySchedules List<Property Map>
    The policy will execute every nth hour starting at the specified time.
    weeklySchedules List<Property Map>
    Allows specifying a snapshot time for each day of the week.

    GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule

    DaysInCycle int
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    StartTime string
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    DaysInCycle int
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    StartTime string
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    daysInCycle Integer
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    startTime String
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    daysInCycle number
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    startTime string
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    days_in_cycle int
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    start_time str
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.
    daysInCycle Number
    Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. Days in cycle for snapshot schedule policy must be 1.
    startTime String
    This must be in UTC format that resolves to one of 00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example, both 13:00-5 and 08:00 are valid.

    GetResourcePolicySnapshotSchedulePolicyScheduleHourlySchedule

    HoursInCycle int
    The number of hours between snapshots.
    StartTime string
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00
    HoursInCycle int
    The number of hours between snapshots.
    StartTime string
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00
    hoursInCycle Integer
    The number of hours between snapshots.
    startTime String
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00
    hoursInCycle number
    The number of hours between snapshots.
    startTime string
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00
    hours_in_cycle int
    The number of hours between snapshots.
    start_time str
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00
    hoursInCycle Number
    The number of hours between snapshots.
    startTime String
    Time within the window to start the operations. It must be in an hourly format "HH:MM", where HH : [00-23] and MM : [00] GMT. eg: 21:00

    GetResourcePolicySnapshotSchedulePolicyScheduleWeeklySchedule

    DayOfWeeks List<GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek>
    May contain up to seven (one for each day of the week) snapshot times.
    DayOfWeeks []GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek
    May contain up to seven (one for each day of the week) snapshot times.
    dayOfWeeks List<GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek>
    May contain up to seven (one for each day of the week) snapshot times.
    dayOfWeeks GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek[]
    May contain up to seven (one for each day of the week) snapshot times.
    day_of_weeks Sequence[GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek]
    May contain up to seven (one for each day of the week) snapshot times.
    dayOfWeeks List<Property Map>
    May contain up to seven (one for each day of the week) snapshot times.

    GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek

    Day string
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    StartTime string
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
    Day string
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    StartTime string
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
    day String
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    startTime String
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
    day string
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    startTime string
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
    day str
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    start_time str
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
    day String
    The day of the week to create the snapshot. e.g. MONDAY Possible values: ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
    startTime String
    Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.

    GetResourcePolicySnapshotSchedulePolicySnapshotProperty

    ChainName string
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    GuestFlush bool
    Whether to perform a 'guest aware' snapshot.
    Labels Dictionary<string, string>
    A set of key-value pairs.
    StorageLocations List<string>
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
    ChainName string
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    GuestFlush bool
    Whether to perform a 'guest aware' snapshot.
    Labels map[string]string
    A set of key-value pairs.
    StorageLocations []string
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
    chainName String
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    guestFlush Boolean
    Whether to perform a 'guest aware' snapshot.
    labels Map<String,String>
    A set of key-value pairs.
    storageLocations List<String>
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
    chainName string
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    guestFlush boolean
    Whether to perform a 'guest aware' snapshot.
    labels {[key: string]: string}
    A set of key-value pairs.
    storageLocations string[]
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
    chain_name str
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    guest_flush bool
    Whether to perform a 'guest aware' snapshot.
    labels Mapping[str, str]
    A set of key-value pairs.
    storage_locations Sequence[str]
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
    chainName String
    Creates the new snapshot in the snapshot chain labeled with the specified name. The chain name must be 1-63 characters long and comply with RFC1035.
    guestFlush Boolean
    Whether to perform a 'guest aware' snapshot.
    labels Map<String>
    A set of key-value pairs.
    storageLocations List<String>
    Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.27.0 published on Thursday, Jun 13, 2024 by Pulumi