- Resource: ResourcePolicy
- SnapshotSchedulePolicy
- Schedule
- HourlyCycle
- DailyCycle
- WeeklyCycle
- DayOfWeek
- Day
- RetentionPolicy
- OnSourceDiskDelete
- SnapshotProperties
- GroupPlacementPolicy
- Collocation
- InstanceSchedulePolicy
- Schedule
- DiskConsistencyGroupPolicy
- Status
- ResourceStatus
- InstanceSchedulePolicyStatus
- Methods
Resource: ResourcePolicy
Represents a Resource Policy resource. You can use resource policies to schedule actions for some Compute Engine resources. For example, you can use them to schedule persistent disk snapshots.
JSON representation |
---|
{ "kind": string, "id": string, "creationTimestamp": string, "selfLink": string, "region": string, "description": string, "name": string, "status": enum ( |
Fields | |
---|---|
kind |
[Output Only] Type of the resource. Always
for resource policies. |
id |
[Output Only] The unique identifier for the resource. This identifier is defined by the server. |
creation |
[Output Only] Creation timestamp in RFC3339 text format. |
self |
[Output Only] Server-defined fully-qualified URL for this resource. |
region |
|
description |
|
name |
The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
status |
[Output Only] The status of resource policy creation. |
resource |
[Output Only] The system status of the resource policy. |
Union field
|
|
snapshot |
Resource policy for persistent disks for creating snapshots. |
group |
Resource policy for instances for placement configuration. |
instance |
Resource policy for scheduling instance operations. |
disk |
Resource policy for disk consistency groups. |
SnapshotSchedulePolicy
A snapshot schedule policy specifies when and how frequently snapshots are to be created for the target disk. Also specifies how many and how long these scheduled snapshots should be retained.
JSON representation |
---|
{ "schedule": { object ( |
Fields | |
---|---|
schedule |
A Vm Maintenance Policy specifies what kind of infrastructure maintenance we are allowed to perform on this VM and when. Schedule that is applied to disks covered by this policy. |
retention |
Retention policy applied to snapshots created by this resource policy. |
snapshot |
Properties with which snapshots are created such as labels, encryption keys. |
Schedule
A schedule for disks where the schedueled operations are performed.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
hourly |
|
daily |
|
weekly |
|
HourlyCycle
Time window specified for hourly operations.
JSON representation |
---|
{ "hoursInCycle": integer, "startTime": string, "duration": string } |
Fields | |
---|---|
hours |
Defines a schedule with units measured in hours. The value determines how many hours pass between the start of each cycle. |
start |
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. |
duration |
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. |
DailyCycle
Time window specified for daily operations.
JSON representation |
---|
{ "daysInCycle": integer, "startTime": string, "duration": string } |
Fields | |
---|---|
days |
Defines a schedule with units measured in days. The value determines how many days pass between the start of each cycle. |
start |
Start time of the window. This must be in UTC format that resolves to one of
,
,
,
,
, or
. For example, both
and
are valid. |
duration |
[Output only] A predetermined duration for the window, automatically chosen to be the smallest possible in the given scenario. |
WeeklyCycle
Time window specified for weekly operations.
JSON representation |
---|
{
"dayOfWeeks": [
{
object ( |
Fields | |
---|---|
day |
Up to 7 intervals/windows, one for each day of the week. |
DayOfWeek
JSON representation |
---|
{
"day": enum ( |
Fields | |
---|---|
day |
Defines a schedule that runs on specific days of the week. Specify one or more days. The following options are available: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY. |
start |
Time within the window to start the operations. It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT. |
duration |
[Output only] Duration of the time window, automatically chosen to be smallest possible in the given scenario. |
Day
Enums | |
---|---|
INVALID |
|
MONDAY |
|
TUESDAY |
|
WEDNESDAY |
|
THURSDAY |
|
FRIDAY |
|
SATURDAY |
|
SUNDAY |
RetentionPolicy
Policy for retention of scheduled snapshots.
JSON representation |
---|
{
"maxRetentionDays": integer,
"onSourceDiskDelete": enum ( |
Fields | |
---|---|
max |
Maximum age of the snapshot that is allowed to be kept. |
on |
Specifies the behavior to apply to scheduled snapshots when the source disk is deleted. |
OnSourceDiskDelete
Enums | |
---|---|
UNSPECIFIED_ON_SOURCE_DISK_DELETE |
|
KEEP_AUTO_SNAPSHOTS |
|
APPLY_RETENTION_POLICY |
SnapshotProperties
Specified snapshot properties for scheduled snapshots created by this policy.
JSON representation |
---|
{ "labels": { string: string, ... }, "storageLocations": [ string ], "guestFlush": boolean, "chainName": string } |
Fields | |
---|---|
labels |
Labels to apply to scheduled snapshots. These can be later modified by the
method. Label values may be empty. |
storage |
Cloud Storage bucket storage location of the auto snapshot (regional or multi-regional). |
guest |
Indication to perform a 'guest aware' snapshot. |
chain |
Chain name that the snapshot is created in. |
GroupPlacementPolicy
A GroupPlacementPolicy specifies resource placement configuration. It specifies the failure bucket separation
JSON representation |
---|
{
"vmCount": integer,
"availabilityDomainCount": integer,
"collocation": enum ( |
Fields | |
---|---|
vm |
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 |
The number of availability domains to spread instances across. If two instances are in different availability domain, they are not in the same low latency network. |
collocation |
Specifies network collocation |
Collocation
Enums | |
---|---|
UNSPECIFIED_COLLOCATION |
|
COLLOCATED |
InstanceSchedulePolicy
An InstanceSchedulePolicy specifies when and how frequent certain operations are performed on the instance.
JSON representation |
---|
{ "vmStartSchedule": { object ( |
Fields | |
---|---|
vm |
Specifies the schedule for starting instances. |
vm |
Specifies the schedule for stopping instances. |
time |
Specifies the time zone to be used in interpreting Schedule.schedule. The value of this field must be a time zone name from the tz database: https://wikipedia.org/wiki/Tz_database. |
start |
The start time of the schedule. The timestamp is an RFC3339 string. |
expiration |
The expiration time of the schedule. The timestamp is an RFC3339 string. |
Schedule
Schedule for an instance operation.
JSON representation |
---|
{ "schedule": string } |
Fields | |
---|---|
schedule |
Specifies the frequency for the operation, using the unix-cron format. |
DiskConsistencyGroupPolicy
This type has no fields.
Resource policy for disk consistency groups.
Status
Enums | |
---|---|
INVALID |
|
CREATING |
Resource policy is being created. |
READY |
Resource policy is ready to be used. |
DELETING |
Resource policy is being deleted. |
EXPIRED |
Resource policy is expired and will not run again. |
ResourceStatus
Contains output only fields. Use this sub-message for all output fields set on ResourcePolicy. The internal structure of this "status" field should mimic the structure of ResourcePolicy proto specification.
JSON representation |
---|
{
"instanceSchedulePolicy": {
object ( |
Fields | |
---|---|
instance |
[Output Only] Specifies a set of output values reffering to the instanceSchedulePolicy system status. This field should have the same name as corresponding policy field. |
InstanceSchedulePolicyStatus
JSON representation |
---|
{ "nextRunStartTime": string, "lastRunStartTime": string } |
Fields | |
---|---|
next |
[Output Only] The next time the schedule is planned to run. The actual time might be slightly different. The timestamp is an RFC3339 string. |
last |
[Output Only] The last time the schedule successfully ran. The timestamp is an RFC3339 string. |
Methods |
|
---|---|
|
The method compute.v1.ResourcePoliciesService.AggregatedList is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.Delete is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.Get is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.GetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.Insert is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.List is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.Patch is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.SetPolicy is not available in this (s3nsapis.fr) universe. |
|
The method compute.v1.ResourcePoliciesService.TestPermissions is not available in this (s3nsapis.fr) universe. |