Skip to main content

Tag Policy conditions and triggers

A full reference of the conditions, scopes, actions, and triggers you can use when creating a Tag Policy.

Match Conditions

FieldValueDescription
ConjunctionWhenThe first row — fixed
ANDAdd an AND condition (all must be true)
ORAdd an OR condition (at least one true)
FieldResource nameThe field to compare — fixed in v1.0
Operatorstart withThe resource name starts with the string
end withThe resource name ends with the string
containsThe resource name contains the string
ValueAny stringCase-insensitive

Condition examples

When   Resource name   contains     prod
AND Resource name start with vm-

Matches: vm-prod-app-01, vm-prod-db-02 Does not match: vm-staging-01, prod-lb-01 (does not start with vm-)

When   Resource name   contains   prod
OR Resource name contains staging

Matches: every resource whose name contains prod or staging

Resource scope

ScopeNotes
InstanceA regular VM (Compute Engine)
VPCVirtual Private Cloud
K8S ClusterThe applied tag → automatically inherited by member VMs
Load Balancer
DB ClusterThe tag applies to the cluster, not to the DB instances
Storage Disk
Subnet
Security Group
Floating IP

📝 Note: Resource scope cannot be changed after the policy is created.

Action

ActionDescriptionAllowed triggers
Add tag (keep existing)Adds the tags while keeping existing tagsOn Creation and/or Manual Run
Replace existing tagsRemoves all existing tags, keeping only the policy's tagsOnly Manual Run

📝 Note: The Replace action with the Instance scope does not replace tags inherited from a K8S Cluster — that VM is reported as Skipped. The action cannot be changed after the policy is created.

Trigger

TriggerUI labelDescription
creationOn Resource CreationRuns automatically when a new resource matching the scope is created
manualManual RunRuns when the admin clicks Run now

Run status

StatusMeaning
SUCCESSEvery matching resource was tagged
PARTIALSome resources were skipped (inheritance, or a cluster with no VMs)
SKIPPEDNo resource matched the conditions
FAILEDA technical error

Resource status in Run details

StatusMeaning
TAGGEDThe resource was tagged successfully
SKIPPEDThe resource was skipped — see the Note column for the reason