Syntax
A google_compute_routes
is used to test a Google Route resource
Beta Resource
This resource has beta fields available. To retrieve these fields, include beta: true
in the constructor for the resource
Examples
describe google_compute_routes(project: 'chef-gcp-inspec') do
its('count') { should be >= 1 }
its('dest_ranges') { should include '15.0.0.0/24' }
its('next_hop_ips') { should include '10.2.0.1' }
its('priorities') { should include '100' }
end
Properties
Properties that can be accessed from the google_compute_routes
resource:
See googlecomputeroute.md for more detailed information
* dest_ranges
: an array of google_compute_route
destrange
* descriptions
: an array of `googlecomputeroutedescription
*
names: an array of
googlecomputeroutename
*
networks: an array of
googlecomputeroutenetwork
*
priorities: an array of
googlecomputeroutepriority
*
tags: an array of
googlecomputeroutetags
*
nexthopgateways: an array of
googlecomputeroute` nexthopgateway
* `nexthopinstances: an array of
googlecomputeroute` nexthopinstance
* `nexthopips: an array of
googlecomputeroute` nexthopip
* `nexthopvpntunnels: an array of
googlecomputeroutenext_hop_vpn_tunnel
*
nexthopnetworks: an array of
googlecomputeroutenext_hop_network
*
nexthopilbs: an array of
googlecomputeroute` nexthopilb
Filter Criteria
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
GCP Permissions
Ensure the Compute Engine API is enabled for the current project.