Class PatchInstanceFilter
A filter to target VM instances for patching. The targeted VMs must meet all criteria specified. So if both labels and zones are specified, the patch job targets only VMs with those labels and in those zones.
Implements
Inherited Members
Namespace: Google.Apis.OSConfig.v1beta.Data
Assembly: Google.Apis.OSConfig.v1beta.dll
Syntax
public class PatchInstanceFilter : IDirectResponseSchema
Properties
All
Target all VM instances in the project. If true, no other criteria is permitted.
Declaration
[JsonProperty("all")]
public virtual bool? All { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
GroupLabels
Targets VM instances matching at least one of these label sets. This allows targeting of disparate groups, for example "env=prod or env=staging".
Declaration
[JsonProperty("groupLabels")]
public virtual IList<PatchInstanceFilterGroupLabel> GroupLabels { get; set; }
Property Value
Type | Description |
---|---|
IList<PatchInstanceFilterGroupLabel> |
InstanceNamePrefixes
Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group VMs when targeting configs, for example prefix="prod-".
Declaration
[JsonProperty("instanceNamePrefixes")]
public virtual IList<string> InstanceNamePrefixes { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Instances
Targets any of the VM instances specified. Instances are specified by their URI in the form
zones/[ZONE]/instances/[INSTANCE_NAME]
, projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]
, or
https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/zones/[ZONE]/instances/[INSTANCE_NAME]
Declaration
[JsonProperty("instances")]
public virtual IList<string> Instances { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Zones
Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
Declaration
[JsonProperty("zones")]
public virtual IList<string> Zones { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |