Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.compute.getResourcePolicy
Explore with Pulumi AI
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/v8/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)
public static Output<GetResourcePolicyResult> getResourcePolicy(GetResourcePolicyArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:compute/getResourcePolicy:getResourcePolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
getResourcePolicy Result
The following output properties are available:
- Description string
- Description of this Resource Policy.
- DiskConsistency List<GetGroup Policies Resource Policy Disk Consistency Group Policy> 
- GroupPlacement List<GetPolicies Resource Policy Group Placement Policy> 
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceSchedule List<GetPolicies Resource Policy Instance Schedule Policy> 
- Name string
- SelfLink string
- The URI of the resource.
- SnapshotSchedule List<GetPolicies Resource Policy Snapshot Schedule Policy> 
- Project string
- Region string
- Description string
- Description of this Resource Policy.
- DiskConsistency []GetGroup Policies Resource Policy Disk Consistency Group Policy 
- GroupPlacement []GetPolicies Resource Policy Group Placement Policy 
- Id string
- The provider-assigned unique ID for this managed resource.
- InstanceSchedule []GetPolicies Resource Policy Instance Schedule Policy 
- Name string
- SelfLink string
- The URI of the resource.
- SnapshotSchedule []GetPolicies Resource Policy Snapshot Schedule Policy 
- Project string
- Region string
- description String
- Description of this Resource Policy.
- diskConsistency List<GetGroup Policies Resource Policy Disk Consistency Group Policy> 
- groupPlacement List<GetPolicies Resource Policy Group Placement Policy> 
- id String
- The provider-assigned unique ID for this managed resource.
- instanceSchedule List<GetPolicies Resource Policy Instance Schedule Policy> 
- name String
- selfLink String
- The URI of the resource.
- snapshotSchedule List<GetPolicies Resource Policy Snapshot Schedule Policy> 
- project String
- region String
- description string
- Description of this Resource Policy.
- diskConsistency GetGroup Policies Resource Policy Disk Consistency Group Policy[] 
- groupPlacement GetPolicies Resource Policy Group Placement Policy[] 
- id string
- The provider-assigned unique ID for this managed resource.
- instanceSchedule GetPolicies Resource Policy Instance Schedule Policy[] 
- name string
- selfLink string
- The URI of the resource.
- snapshotSchedule GetPolicies Resource Policy Snapshot Schedule Policy[] 
- project string
- region string
- description str
- Description of this Resource Policy.
- disk_consistency_ Sequence[Getgroup_ policies Resource Policy Disk Consistency Group Policy] 
- group_placement_ Sequence[Getpolicies Resource Policy Group Placement Policy] 
- id str
- The provider-assigned unique ID for this managed resource.
- instance_schedule_ Sequence[Getpolicies Resource Policy Instance Schedule Policy] 
- name str
- self_link str
- The URI of the resource.
- snapshot_schedule_ Sequence[Getpolicies Resource Policy Snapshot Schedule Policy] 
- project str
- region str
- description String
- Description of this Resource Policy.
- diskConsistency List<Property Map>Group Policies 
- groupPlacement List<Property Map>Policies 
- id String
- The provider-assigned unique ID for this managed resource.
- instanceSchedule List<Property Map>Policies 
- name String
- selfLink String
- The URI of the resource.
- snapshotSchedule List<Property Map>Policies 
- 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     
- AvailabilityDomain intCount 
- 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.
- AvailabilityDomain intCount 
- 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.
- availabilityDomain IntegerCount 
- 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.
- availabilityDomain numberCount 
- 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_ intcount 
- 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.
- availabilityDomain NumberCount 
- 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.
- VmStart List<GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule> 
- Specifies the schedule for starting instances.
- VmStop List<GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule> 
- 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.
- VmStart []GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule 
- Specifies the schedule for starting instances.
- VmStop []GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule 
- 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.
- vmStart List<GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule> 
- Specifies the schedule for starting instances.
- vmStop List<GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule> 
- 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.
- vmStart GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule[] 
- Specifies the schedule for starting instances.
- vmStop GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule[] 
- 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_ Sequence[Getschedules Resource Policy Instance Schedule Policy Vm Start Schedule] 
- Specifies the schedule for starting instances.
- vm_stop_ Sequence[Getschedules Resource Policy Instance Schedule Policy Vm Stop Schedule] 
- 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.
- vmStart List<Property Map>Schedules 
- Specifies the schedule for starting instances.
- vmStop List<Property Map>Schedules 
- 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<GetResource Policy Snapshot Schedule Policy Retention Policy> 
- Retention policy applied to snapshots created by this resource policy.
- Schedules
List<GetResource Policy Snapshot Schedule Policy Schedule> 
- Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- SnapshotProperties List<GetResource Policy Snapshot Schedule Policy Snapshot Property> 
- Properties with which the snapshots are created, such as labels.
- RetentionPolicies []GetResource Policy Snapshot Schedule Policy Retention Policy 
- Retention policy applied to snapshots created by this resource policy.
- Schedules
[]GetResource Policy Snapshot Schedule Policy Schedule 
- Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- SnapshotProperties []GetResource Policy Snapshot Schedule Policy Snapshot Property 
- Properties with which the snapshots are created, such as labels.
- retentionPolicies List<GetResource Policy Snapshot Schedule Policy Retention Policy> 
- Retention policy applied to snapshots created by this resource policy.
- schedules
List<GetResource Policy Snapshot Schedule Policy Schedule> 
- Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- snapshotProperties List<GetResource Policy Snapshot Schedule Policy Snapshot Property> 
- Properties with which the snapshots are created, such as labels.
- retentionPolicies GetResource Policy Snapshot Schedule Policy Retention Policy[] 
- Retention policy applied to snapshots created by this resource policy.
- schedules
GetResource Policy Snapshot Schedule Policy Schedule[] 
- Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- snapshotProperties GetResource Policy Snapshot Schedule Policy Snapshot Property[] 
- Properties with which the snapshots are created, such as labels.
- retention_policies Sequence[GetResource Policy Snapshot Schedule Policy Retention Policy] 
- Retention policy applied to snapshots created by this resource policy.
- schedules
Sequence[GetResource Policy Snapshot Schedule Policy Schedule] 
- Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- snapshot_properties Sequence[GetResource Policy Snapshot Schedule Policy Snapshot Property] 
- 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       
- MaxRetention intDays 
- Maximum age of the snapshot that is allowed to be kept.
- OnSource stringDisk Delete 
- 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"]
- MaxRetention intDays 
- Maximum age of the snapshot that is allowed to be kept.
- OnSource stringDisk Delete 
- 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"]
- maxRetention IntegerDays 
- Maximum age of the snapshot that is allowed to be kept.
- onSource StringDisk Delete 
- 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"]
- maxRetention numberDays 
- Maximum age of the snapshot that is allowed to be kept.
- onSource stringDisk Delete 
- 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_ intdays 
- Maximum age of the snapshot that is allowed to be kept.
- on_source_ strdisk_ delete 
- 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"]
- maxRetention NumberDays 
- Maximum age of the snapshot that is allowed to be kept.
- onSource StringDisk Delete 
- 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<GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule> 
- The policy will execute every nth day at the specified time.
- HourlySchedules List<GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule> 
- The policy will execute every nth hour starting at the specified time.
- WeeklySchedules List<GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule> 
- Allows specifying a snapshot time for each day of the week.
- DailySchedules []GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule 
- The policy will execute every nth day at the specified time.
- HourlySchedules []GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule 
- The policy will execute every nth hour starting at the specified time.
- WeeklySchedules []GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule 
- Allows specifying a snapshot time for each day of the week.
- dailySchedules List<GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule> 
- The policy will execute every nth day at the specified time.
- hourlySchedules List<GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule> 
- The policy will execute every nth hour starting at the specified time.
- weeklySchedules List<GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule> 
- Allows specifying a snapshot time for each day of the week.
- dailySchedules GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule[] 
- The policy will execute every nth day at the specified time.
- hourlySchedules GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule[] 
- The policy will execute every nth hour starting at the specified time.
- weeklySchedules GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule[] 
- Allows specifying a snapshot time for each day of the week.
- daily_schedules Sequence[GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule] 
- The policy will execute every nth day at the specified time.
- hourly_schedules Sequence[GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule] 
- The policy will execute every nth hour starting at the specified time.
- weekly_schedules Sequence[GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule] 
- 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        
- DaysIn intCycle 
- 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.
- DaysIn intCycle 
- 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.
- daysIn IntegerCycle 
- 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.
- daysIn numberCycle 
- 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_ intcycle 
- 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.
- daysIn NumberCycle 
- 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        
- HoursIn intCycle 
- 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
- HoursIn intCycle 
- 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
- hoursIn IntegerCycle 
- 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
- hoursIn numberCycle 
- 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_ intcycle 
- 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
- hoursIn NumberCycle 
- 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        
- DayOf List<GetWeeks Resource Policy Snapshot Schedule Policy Schedule Weekly Schedule Day Of Week> 
- May contain up to seven (one for each day of the week) snapshot times.
- DayOf []GetWeeks Resource Policy Snapshot Schedule Policy Schedule Weekly Schedule Day Of Week 
- May contain up to seven (one for each day of the week) snapshot times.
- dayOf List<GetWeeks Resource Policy Snapshot Schedule Policy Schedule Weekly Schedule Day Of Week> 
- May contain up to seven (one for each day of the week) snapshot times.
- dayOf GetWeeks Resource Policy Snapshot Schedule Policy Schedule Weekly Schedule Day Of Week[] 
- May contain up to seven (one for each day of the week) snapshot times.
- day_of_ Sequence[Getweeks Resource Policy Snapshot Schedule Policy Schedule Weekly Schedule Day Of Week] 
- May contain up to seven (one for each day of the week) snapshot times.
- dayOf List<Property Map>Weeks 
- May contain up to seven (one for each day of the week) snapshot times.
GetResourcePolicySnapshotSchedulePolicyScheduleWeeklyScheduleDayOfWeek           
- 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.
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-betaTerraform Provider.