Skip to main content

instances_referrers

Creates, updates, deletes, gets or lists a instances_referrers resource.

Overview

Nameinstances_referrers
TypeResource
Idgoogle.compute.instances_referrers

Fields

NameDatatypeDescription
kindstring[Output Only] Type of the resource. Always compute#reference for references.
referenceTypestringA description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF
referrerstringURL of the resource which refers to the target.
targetstringURL of the resource to which this reference points.

Methods

NameAccessible byRequired ParamsDescription
list_referrersSELECTinstance, project, zoneRetrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.

SELECT examples

Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.

SELECT
kind,
referenceType,
referrer,
target
FROM google.compute.instances_referrers
WHERE instance = '{{ instance }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';