gcp-filestore-explicit-network-located-in

explicit gcp emits LocatedIn

emit

source type*
target typeVirtualNetwork
source<Filestore instance node>
target<VirtualNetwork node>

Narrative

{instance.name} is attached to VPC {network.name} at IP {instance.ip}.

Raw rule rules/explicit/gcp-filestore.yaml

id: gcp-filestore-explicit-network-located-in
emits: LocatedIn
applies_to:
- gcp
source_record:
  api: file.googleapis.com/v1/projects/{project}/locations/{location}/instances/{instance}
  field: networks[].network
emit:
  source_type: '*'
  target_type: VirtualNetwork
  source: <Filestore instance node>
  target: <VirtualNetwork node>
  api_source: file.instances.get
  evidence_field: networks[].network
  narrative: '{instance.name} is attached to VPC {network.name} at IP {instance.ip}.'
move · open · esc close