Skip to content

Latest commit

 

History

History
78 lines (62 loc) · 3.68 KB

nodebalancer_list.md

File metadata and controls

78 lines (62 loc) · 3.68 KB

nodebalancer_list

List and filter on Node Balancers.

Minimum Required Fields

Field Type Required Description
api_token str Required The Linode account personal access token. It is necessary to run the module.
It can be exposed by the environment variable LINODE_API_TOKEN instead.
See details in Usage.

Examples

- name: List all of the Nodebalancers for the current Linode Account
  linode.cloud.nodebalancer_list: {}
- name: Resolve all Nodebalancers for the current Linode Account
  linode.cloud.nodebalancer_list:
    filters:
      - name: label
        values: myNodebalancerLabel

Parameters

Field Type Required Description
order str Optional The order to list Node Balancers in. (Choices: desc, asc; Default: asc)
order_by str Optional The attribute to order Node Balancers by.
filters (sub-options) list Optional A list of filters to apply to the resulting Node Balancers.
count int Optional The number of Node Balancers to return. If undefined, all results will be returned.

filters

Field Type Required Description
name str Required The name of the field to filter on. Valid filterable fields can be found here.
values list Required A list of values to allow for this field. Fields will pass this filter if at least one of these values matches.

Return Values

  • nodebalancers - The returned Node Balancers.

    • Sample Response:
      [
          {
            "client_conn_throttle": 0,
            "created": "2018-01-01T00:01:01",
            "hostname": "192.0.2.1.ip.linodeusercontent.com",
            "id": 12345,
            "ipv4": "203.0.113.1",
            "ipv6": null,
            "label": "balancer12345",
            "region": "us-east",
            "tags": [
              "example tag",
              "another example"
            ],
            "transfer": {
              "in": 28.91200828552246,
              "out": 3.5487728118896484,
              "total": 32.46078109741211
            },
            "updated": "2018-03-01T00:01:01"
          }
      ]
    • See the Linode API response documentation for a list of returned fields