tag_bindings
Creates, updates, deletes, gets or lists a tag_bindings
resource.
Overview
Name | tag_bindings |
Type | Resource |
Id | google.cloudresourcemanager.tag_bindings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The name of the TagBinding. This is a String of the form: tagBindings/{full-resource-name}/{tag-value-name} (e.g. tagBindings/%2F%2Fcloudresourcemanager.googleapis.com%2Fprojects%2F123/tagValues/456 ). |
parent | string | The full resource name of the resource the TagValue is bound to. E.g. //cloudresourcemanager.googleapis.com/projects/123 |
tagValue | string | The TagValue of the TagBinding. Must be of the form tagValues/456 . |
tagValueNamespacedName | string | The namespaced name for the TagValue of the TagBinding. Must be in the format {parent_id}/{tag_key_short_name}/{short_name} . For methods that support TagValue namespaced name, only one of tag_value_namespaced_name or tag_value may be filled. Requests with both fields will be rejected. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list | SELECT |
| Lists the TagBindings for the given Google Cloud resource, as specified with parent . NOTE: The parent field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name |
create | INSERT |
| Creates a TagBinding between a TagValue and a Google Cloud resource. |
delete | DELETE | tagBindingsId | Deletes a TagBinding. |
SELECT
examples
Lists the TagBindings for the given Google Cloud resource, as specified with parent
. NOTE: The parent
field is expected to be a full resource name: https://cloud.google.com/apis/design/resource_names#full_resource_name
SELECT
name,
parent,
tagValue,
tagValueNamespacedName
FROM google.cloudresourcemanager.tag_bindings
;
INSERT
example
Use the following StackQL query and manifest file to create a new tag_bindings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.cloudresourcemanager.tag_bindings (
parent,
tagValue,
tagValueNamespacedName
)
SELECT
'{{ parent }}',
'{{ tagValue }}',
'{{ tagValueNamespacedName }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: parent
value: string
- name: tagValue
value: string
- name: tagValueNamespacedName
value: string
DELETE
example
Deletes the specified tag_bindings
resource.
/*+ delete */
DELETE FROM google.cloudresourcemanager.tag_bindings
WHERE tagBindingsId = '{{ tagBindingsId }}';