List and filter on Node Balancers.
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. |
- 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
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. |
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. |
-
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
- Sample Response: