GCP - Add or Remove Labels to/from Assets
- 28 Jan 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
GCP - Add or Remove Labels to/from Assets
- Updated on 28 Jan 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The GCP - Add or Remove Labels to/from Assets action adds or removes labels from Google Cloud Provider assets.
- Assets that match the results of the selected saved query, and match the Enforcement Action Conditions if defined, or assets selected on the relevant asset page.
Note:
To use this Enforcement Action, you must successfully configure a Google Cloud Platform (GCP) adapter connection.
See Creating Enforcement Sets to learn more about adding Enforcement Actions to Enforcement Sets.
Note:
- Not all asset categories are supported for all Enforcement Actions.
- See Actions supported for Activity Logs, Adapters Fetch History, and Asset Investigation modules.
- See Actions supported for Vulnerabilities.
- See Actions supported for Software.
General Settings
- Action name - The name of this Enforcement Action. The system sets a default name. You can change the name.
- Configure Dynamic Values - Toggle on to enter a Dynamic Value statement. See Creating Enforcement Action Dynamic Value Statements to learn more about Dynamic Value statement syntax.
- Use stored credentials from the GCP Adapter - Select this option to use the first connected GCP adapter credentials. See Google Cloud Platform (GCP) for information about connecting the GCP adapter.
Required Fields
These fields must be configured to run the Enforcement Set.
Compute Node - The Axonius node to use when connecting to the specified host. For more details, see Connecting Additional Axonius Nodes.
Additional Fields
These fields are optional.
- Label names and Label value - Enter label names separated by a comma in the Label names field and the value of each label separated by a comma in the Label value field. The first label name corresponds to the first label value, and so on.
- Choose action for labels - Select whether to Add label or Remove label.
- Gateway Name - Select the Gateway through which to connect to perform the action.
- Click Advanced Options to add more Actions to this Enforcement Set.
APIs
Axonius uses the Method: instances.setTags | Compute Engine Documentation | Google Cloud API.
Required Permissions
The value supplied in Use stored credentials from the GCP Adapter must have the following permission:
- compute.v1.InstancesService.SetTags
For more details about other Enforcement Actions available, see Action Library.
Was this article helpful?