Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
gcp.compute.getResourcePolicy
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.
- 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> - Workload
Policies List<GetResource Policy Workload 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 - Workload
Policies []GetResource Policy Workload 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> - workload
Policies List<GetResource Policy Workload 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[] - workload
Policies GetResource Policy Workload 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] - workload_
policies Sequence[GetResource Policy Workload 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 - workload
Policies 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
- 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"]
- Gpu
Topology string - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- Max
Distance int - Specifies the number of max logical switches.
- Tpu
Topology string - Specifies the shape of the TPU slice.
- 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"]
- Gpu
Topology string - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- Max
Distance int - Specifies the number of max logical switches.
- Tpu
Topology string - Specifies the shape of the TPU slice.
- 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"]
- gpu
Topology String - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- max
Distance Integer - Specifies the number of max logical switches.
- tpu
Topology String - Specifies the shape of the TPU slice.
- 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"]
- gpu
Topology string - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- max
Distance number - Specifies the number of max logical switches.
- tpu
Topology string - Specifies the shape of the TPU slice.
- 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"]
- gpu_
topology str - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- max_
distance int - Specifies the number of max logical switches.
- tpu_
topology str - Specifies the shape of the TPU slice.
- 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"]
- gpu
Topology String - Specifies the shape of the GPU slice, in slice based GPU families eg. A4X.
- max
Distance Number - Specifies the number of max logical switches.
- tpu
Topology String - Specifies the shape of the TPU slice.
- 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)
GetResourcePolicyWorkloadPolicy
- Accelerator
Topology string - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- Max
Topology stringDistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- Type string
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
- Accelerator
Topology string - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- Max
Topology stringDistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- Type string
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
- accelerator
Topology String - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- max
Topology StringDistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- type String
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
- accelerator
Topology string - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- max
Topology stringDistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- type string
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
- accelerator_
topology str - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- max_
topology_ strdistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- type str
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
- accelerator
Topology String - The accelerator topology. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if max topology distance is set.
- max
Topology StringDistance - The maximum topology distance. This field can be set only when the workload policy type is HIGH_THROUGHPUT and cannot be set if accelerator topology is set. Possible values: ["BLOCK", "CLUSTER", "SUBBLOCK"]
- type String
- The type of workload policy. Possible values: ["HIGH_AVAILABILITY", "HIGH_THROUGHPUT"]
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.
