gcp-ncc-spoke-located-in-hub
match (record)
{
"api": "networkconnectivity.projects.locations.spokes.list",
"resource_type": "networkconnectivity.googleapis.com/Spoke"
}
emit
| source type | Route |
|---|---|
| target type | TransitGateway |
| source | <NCC Spoke node (Route) — node_id derived from spoke.name> |
| target | <NCC Hub node (TransitGateway) — from spoke.hub> |
Narrative
{spoke.name} is an NCC Spoke (Route) attached to hub {hub.name} (state: {spoke.state}). Spoke type: {spoke_type}.
Raw rule rules/explicit/gcp-ncc.yaml
id: gcp-ncc-spoke-located-in-hub
emits: LocatedIn
applies_to:
- gcp
match_record:
api: networkconnectivity.projects.locations.spokes.list
resource_type: networkconnectivity.googleapis.com/Spoke
emit:
source_type: Route
target_type: TransitGateway
source: "<NCC Spoke node (Route) \u2014 node_id derived from spoke.name>"
target: "<NCC Hub node (TransitGateway) \u2014 from spoke.hub>"
api_source: networkconnectivity.projects.locations.spokes.list
evidence_field: spoke.hub
narrative: '{spoke.name} is an NCC Spoke (Route) attached to hub {hub.name} (state: {spoke.state}).
Spoke type: {spoke_type}.'