Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:compute/getResourcePolicy:getResourcePolicy
arguments:
# arguments dictionary
The following arguments are supported:
getResourcePolicy Result
The following output properties are available:
- Description string
- Description of this Resource Policy.
- Disk
Consistency List<GetGroup Policies Resource Policy Disk Consistency Group Policy> - Group
Placement List<GetPolicies Resource Policy Group Placement Policy> - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Schedule List<GetPolicies Resource Policy Instance Schedule Policy> - Name string
- Self
Link string - The URI of the resource.
- Snapshot
Schedule List<GetPolicies Resource Policy Snapshot Schedule Policy> - Project string
- Region string
- Description string
- Description of this Resource Policy.
- Disk
Consistency []GetGroup Policies Resource Policy Disk Consistency Group Policy - Group
Placement []GetPolicies Resource Policy Group Placement Policy - Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Schedule []GetPolicies Resource Policy Instance Schedule Policy - Name string
- Self
Link string - The URI of the resource.
- Snapshot
Schedule []GetPolicies Resource Policy Snapshot Schedule Policy - Project string
- Region string
- description String
- Description of this Resource Policy.
- disk
Consistency List<GetGroup Policies Resource Policy Disk Consistency Group Policy> - group
Placement List<GetPolicies Resource Policy Group Placement Policy> - id String
- The provider-assigned unique ID for this managed resource.
- instance
Schedule List<GetPolicies Resource Policy Instance Schedule Policy> - name String
- self
Link String - The URI of the resource.
- snapshot
Schedule List<GetPolicies Resource Policy Snapshot Schedule Policy> - project String
- region String
- description string
- Description of this Resource Policy.
- disk
Consistency GetGroup Policies Resource Policy Disk Consistency Group Policy[] - group
Placement GetPolicies Resource Policy Group Placement Policy[] - id string
- The provider-assigned unique ID for this managed resource.
- instance
Schedule GetPolicies Resource Policy Instance Schedule Policy[] - name string
- self
Link string - The URI of the resource.
- snapshot
Schedule 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.
- disk
Consistency List<Property Map>Group Policies - group
Placement List<Property Map>Policies - id String
- The provider-assigned unique ID for this managed resource.
- instance
Schedule List<Property Map>Policies - name String
- self
Link String - The URI of the resource.
- snapshot
Schedule 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
- 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 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"]
- 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.
- 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 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"]
- 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.
- availability
Domain 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"]
- max
Distance Integer - Specifies the number of max logical switches.
- vm
Count 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.
- availability
Domain 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"]
- max
Distance number - Specifies the number of max logical switches.
- vm
Count 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.
- availability
Domain 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"]
- max
Distance Number - Specifies the number of max logical switches.
- vm
Count 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
- Expiration
Time string - The expiration time of the schedule. The timestamp is an RFC3339 string.
- Start
Time string - The start time of the schedule. The timestamp is an RFC3339 string.
- Time
Zone 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.
- Vm
Start List<GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule> - Specifies the schedule for starting instances.
- Vm
Stop List<GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule> - Specifies the schedule for stopping instances.
- Expiration
Time string - The expiration time of the schedule. The timestamp is an RFC3339 string.
- Start
Time string - The start time of the schedule. The timestamp is an RFC3339 string.
- Time
Zone 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.
- Vm
Start []GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule - Specifies the schedule for starting instances.
- Vm
Stop []GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule - Specifies the schedule for stopping instances.
- expiration
Time String - The expiration time of the schedule. The timestamp is an RFC3339 string.
- start
Time String - The start time of the schedule. The timestamp is an RFC3339 string.
- time
Zone 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.
- vm
Start List<GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule> - Specifies the schedule for starting instances.
- vm
Stop List<GetSchedules Resource Policy Instance Schedule Policy Vm Stop Schedule> - Specifies the schedule for stopping instances.
- expiration
Time string - The expiration time of the schedule. The timestamp is an RFC3339 string.
- start
Time string - The start time of the schedule. The timestamp is an RFC3339 string.
- time
Zone 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.
- vm
Start GetSchedules Resource Policy Instance Schedule Policy Vm Start Schedule[] - Specifies the schedule for starting instances.
- vm
Stop 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.
- expiration
Time String - The expiration time of the schedule. The timestamp is an RFC3339 string.
- start
Time String - The start time of the schedule. The timestamp is an RFC3339 string.
- time
Zone 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.
- vm
Start List<Property Map>Schedules - Specifies the schedule for starting instances.
- vm
Stop 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
- Retention
Policies List<GetResource Policy Snapshot Schedule Policy Retention Policy> - Retention policy applied to snapshots created by this resource policy.
- Schedules
List<Get
Resource Policy Snapshot Schedule Policy Schedule> - Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- Snapshot
Properties List<GetResource Policy Snapshot Schedule Policy Snapshot Property> - Properties with which the snapshots are created, such as labels.
- Retention
Policies []GetResource Policy Snapshot Schedule Policy Retention Policy - Retention policy applied to snapshots created by this resource policy.
- Schedules
[]Get
Resource Policy Snapshot Schedule Policy Schedule - Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- Snapshot
Properties []GetResource Policy Snapshot Schedule Policy Snapshot Property - Properties with which the snapshots are created, such as labels.
- retention
Policies List<GetResource Policy Snapshot Schedule Policy Retention Policy> - Retention policy applied to snapshots created by this resource policy.
- schedules
List<Get
Resource Policy Snapshot Schedule Policy Schedule> - Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- snapshot
Properties List<GetResource Policy Snapshot Schedule Policy Snapshot Property> - Properties with which the snapshots are created, such as labels.
- retention
Policies GetResource Policy Snapshot Schedule Policy Retention Policy[] - Retention policy applied to snapshots created by this resource policy.
- schedules
Get
Resource Policy Snapshot Schedule Policy Schedule[] - Contains one of an 'hourlySchedule', 'dailySchedule', or 'weeklySchedule'.
- snapshot
Properties 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[Get
Resource 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.
- retention
Policies 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'.
- snapshot
Properties List<Property Map> - Properties with which the snapshots are created, such as labels.
GetResourcePolicySnapshotSchedulePolicyRetentionPolicy
- Max
Retention intDays - Maximum age of the snapshot that is allowed to be kept.
- On
Source 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 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 IntegerDays - Maximum age of the snapshot that is allowed to be kept.
- on
Source 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 numberDays - Maximum age of the snapshot that is allowed to be kept.
- on
Source 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"]
- max
Retention NumberDays - Maximum age of the snapshot that is allowed to be kept.
- on
Source 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
- Daily
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule> - The policy will execute every nth day at the specified time.
- Hourly
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule> - The policy will execute every nth hour starting at the specified time.
- Weekly
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule> - Allows specifying a snapshot time for each day of the week.
- Daily
Schedules []GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule - The policy will execute every nth day at the specified time.
- Hourly
Schedules []GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule - The policy will execute every nth hour starting at the specified time.
- Weekly
Schedules []GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule - Allows specifying a snapshot time for each day of the week.
- daily
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule> - The policy will execute every nth day at the specified time.
- hourly
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule> - The policy will execute every nth hour starting at the specified time.
- weekly
Schedules List<GetResource Policy Snapshot Schedule Policy Schedule Weekly Schedule> - Allows specifying a snapshot time for each day of the week.
- daily
Schedules GetResource Policy Snapshot Schedule Policy Schedule Daily Schedule[] - The policy will execute every nth day at the specified time.
- hourly
Schedules GetResource Policy Snapshot Schedule Policy Schedule Hourly Schedule[] - The policy will execute every nth hour starting at the specified time.
- weekly
Schedules 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.
- daily
Schedules List<Property Map> - The policy will execute every nth day at the specified time.
- hourly
Schedules List<Property Map> - The policy will execute every nth hour starting at the specified time.
- weekly
Schedules List<Property Map> - Allows specifying a snapshot time for each day of the week.
GetResourcePolicySnapshotSchedulePolicyScheduleDailySchedule
- 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 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 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 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.
- start
Time 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 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.
- start
Time 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.
- days
In 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.
- start
Time 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
- Hours
In intCycle - The number of hours between snapshots.
- Start
Time 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 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 IntegerCycle - The number of hours between snapshots.
- start
Time 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 numberCycle - The number of hours between snapshots.
- start
Time 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
- hours
In NumberCycle - The number of hours between snapshots.
- start
Time 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
- Day
Of 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.
- Day
Of []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 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.
- day
Of 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.
- day
Of 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
- Chain
Name 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.
- Guest
Flush bool - Whether to perform a 'guest aware' snapshot.
- Labels Dictionary<string, string>
- A set of key-value pairs.
- Storage
Locations List<string> - Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
- Chain
Name 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.
- Guest
Flush bool - Whether to perform a 'guest aware' snapshot.
- Labels map[string]string
- A set of key-value pairs.
- Storage
Locations []string - Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
- chain
Name 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.
- guest
Flush Boolean - Whether to perform a 'guest aware' snapshot.
- labels Map<String,String>
- A set of key-value pairs.
- storage
Locations List<String> - Cloud Storage bucket location to store the auto snapshot (regional or multi-regional)
- chain
Name 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.
- guest
Flush boolean - Whether to perform a 'guest aware' snapshot.
- labels {[key: string]: string}
- A set of key-value pairs.
- storage
Locations 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)
- chain
Name 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.
- guest
Flush Boolean - Whether to perform a 'guest aware' snapshot.
- labels Map<String>
- A set of key-value pairs.
- storage
Locations 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.