goldyfruit.ibmcloud_automation.ic_is_vpc_route_info (1.0.4) — module

Retrieve routes from VPC on IBM Cloud.

| "added in version" 2.9 of goldyfruit.ibmcloud_automation"

Authors: Gaëtan Trellu (@goldyfruit)

preview | supported by community

Install collection

Install with ansible-galaxy collection install goldyfruit.ibmcloud_automation:==1.0.4


Add to requirements.yml

  collections:
    - name: goldyfruit.ibmcloud_automation
      version: 1.0.4

Description

This module retrieves routes in the VPC's default routing table. For compatibility, routes with action values other than deliver are omitted.

Each route is zone-specific and directs any packets matching its destination CIDR block to a next_hop IP address. The most specific route matching a packet's destination will be used. If multiple equally-specific routes exist, traffic will be distributed across them.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve routes list
  ic_is_vpc_route_info:
    vpc: ibmcloud-vpc-baby
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Retrieve specific route
  ic_is_vpc_route_info:
    vpc: ibmcloud-vpc-baby
    route: ibmcloud-route-baby

Inputs

    
vpc:
    description:
    - VPC name or ID
    required: true
    type: str

route:
    description:
    - Restrict results to route with ID or name matching.
    type: str