-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
relations.yaml
205 lines (201 loc) · 6.26 KB
/
relations.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# List of asset types that have references to other assets as part
# of their properties.
asset_types:
cloudresourcemanager.googleapis.com/Folder:
- $.parent
cloudresourcemanager.googleapis.com/Project:
- $.parent
compute.googleapis.com/Network:
- $.parent
- $.data.peerings[*].network
compute.googleapis.com/Subnetwork:
- $.data.network
compute.googleapis.com/Address:
- $.data.subnetwork
- $.data.users[*]
compute.googleapis.com/GlobalAddress:
- $.data.network
compute.googleapis.com/BackendService:
- $.data.healthChecks[*]
- $.data.backends[*].group
- $.data.securityPolicy
compute.googleapis.com/RegionBackendService:
- $.data.healthChecks[*]
- $.data.backends[*].group
- $.data.securityPolicy
compute.googleapis.com/NetworkEndpointGroup:
- $.data.network
- $.data.subnetwork
compute.googleapis.com/Disk:
- $.data.users[*]
- $.data.resourcePolicies[*]
compute.googleapis.com/RegionDisk:
- $.data.users[*]
- $.data.resourcePolicies[*]
compute.googleapis.com/Firewall:
- $.data.network
- $.data.sourceServiceAccounts
- $.data.targetServiceAccounts
compute.googleapis.com/ForwardingRule:
- $.data.network
- $.data.subnetwork
- $.data.target
compute.googleapis.com/GlobalForwardingRule:
- $.data.target
compute.googleapis.com/Instance:
- $.data.networkInterfaces[*].network
- $.data.networkInterfaces[*].subnetwork
- $.data.disks[*].source
- $.parent
compute.googleapis.com/InstanceGroup:
- $.data.network
- $.data.subnetwork
compute.googleapis.com/InstanceGroupManager:
- $.data.instanceGroup
- $.data.instanceTemplate
compute.googleapis.com/InstanceTemplate:
- $.data.properties.networkInterface[*].network
- $.data.properties.networkInterface[*].subnetwork
- $.data.properties.disks[*].sourceImage
compute.googleapis.com/Route:
- $.data.network
- $.data.nextHopNetwork
compute.googleapis.com/Router:
- $.data.network
- $.data.interfaces[*].linkedVpnTunnel
- $.data.interfaces[*].linkedInterconnectAttachment
compute.googleapis.com/Interconnect:
- $.data.interconnectAttachments[*]
compute.googleapis.com/VpnTunnel:
- $.data.peerExternalGateway
- $.data.vpnGateway
- $.data.router
compute.googleapis.com/Snapshot:
- $.data.sourceDisk
compute.googleapis.com/TargetHttpProxy:
- $.data.urlMap
compute.googleapis.com/TargetHttpsProxy:
- $.data.urlMap
- $.data.sslCertificates[*]
compute.googleapis.com/TargetTcpProxy:
- $.data.service
compute.googleapis.com/TargetInstance:
- $.data.service
compute.googleapis.com/TargetVpnGateway:
- $.data.forwardingRules[*]
- $.data.tunnels[*]
- $.data.network
#compute.googleapis.com/SslCertificate:
# - $.parent
compute.googleapis.com/UrlMap:
- $.data.defaultService
- $.data.pathMatchers[*].defaultService
- $.data.pathMatchers[*].pathRules[*].service
compute.googleapis.com/Autoscaler:
- $.data.target
appengine.googleapis.com/Service:
- $.parent
appengine.googleapis.com/Version:
- $.parent
dns.googleapis.com/ManagedZone:
- $.parent
- $.data.privateVisibilityConfig.networks[*].networkUrl
dns.googleapis.com/Policy:
- $.data.networks[*].networkUrl
bigquery.googleapis.com/Dataset:
- $.parent
bigquery.googleapis.com/Table:
- $.parent
pubsub.googleapis.com/Topic:
- $.parent
pubsub.googleapis.com/Subscription:
- $.parent
- $.data.topic
container.googleapis.com/Cluster:
- $.parent
- $.data.instanceGroupUrls[*]
container.googleapis.com/NodePool:
- $.data.instanceGroupUrls[*]
- $.parent
# - $.data.networkConfig.network
# - $.data.networkConfig.subnetwork
iam.googleapis.com/ServiceAccount:
- $.parent
iam.googleapis.com/ServiceAccountKey:
- $.parent
sqladmin.googleapis.com/Instance:
- $.parent
- $.data.ipConfiguration.privateNetwork
storage.googleapis.com/Bucket:
- $.parent
compute.googleapis.com/HealthCheck:
- $.parent
compute.googleapis.com/SecurityPolicy:
- $.parent
k8s.io/Node:
- $.parent
k8s.io/Namespace:
- $.parent
k8s.io/Pod:
- $.parent
k8s.io/Service:
- $.parent
networking.k8s.io/Ingress:
- $.parent
extensions.k8s.io/Ingress:
- $.parent
logging.googleapis.com/LogSink:
- $.data.destination
- $.parent
logging.googleapis.com/LogMetric:
- $.parent
# If a resource is referenced somewhere else with a different syntax
# than what Cloud Asset Inventory does, aliases configuration allows
# gcpviz to create aliases for assets.
aliases:
iam.googleapis.com/ServiceAccount:
- $.data.email
# Asset enrichment configuration. Allows the tool to synthesize
# new fields in assets, such as gathering all subnetworks CIDR ranges
# as part of the parent network.
enrich:
compute.googleapis.com/Network:
subnetworkConfig:
compute.googleapis.com/Subnetwork: $
iam.googleapis.com/ServiceAccount:
serviceAccountKeys:
iam.googleapis.com/ServiceAccount: $
# References to all asset types fields with IP addresses in them
# for the IP matching functionality.
ip_addresses:
compute.googleapis.com/Firewall:
- $.data.destinationRanges[*]
- $.data.sourceRanges[*]
compute.googleapis.com/VpnGateway:
- $.data.vpnInterface[*].ipAddress
compute.googleapis.com/VpnTunnel:
- $.data.peerIp
compute.googleapis.com/Address:
- $.data.address
compute.googleapis.com/GlobalAddress:
- $.data.address
compute.googleapis.com/GlobalForwardingRule:
- $.data.IPAddress
compute.googleapis.com/ForwardingRule:
- $.data.IPAddress
#compute.googleapis.com/Instance:
# - $.data.networkInterfaces[*].networkIP