Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 3.73 KB

lke_version_list.md

File metadata and controls

80 lines (58 loc) · 3.73 KB

lke_version_list

List and filter on LKE Versions.

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 Kubernetes versions available for deployment to a Kubernetes cluster
      linode.cloud.lke_version_list:
    
    - name: List all enterprise-tier Kubernetes versions available for deployment to a Kubernetes cluster
      linode.cloud.lke_version_list:
        tier: "enterprise"
    

Parameters

Field Type Required Description
order str Optional The order to list LKE Versions in. (Choices: desc, asc; Default: asc)
order_by str Optional The attribute to order LKE Versions by.
filters (sub-options) list Optional A list of filters to apply to the resulting LKE Versions.
count int Optional The number of LKE Versions to return. If undefined, all results will be returned.
tier str Optional Specifies the service tier for retrieving LKE version details. NOTE: LKE Enterprise may not currently be available to all users and can only be used with v4beta. (Choices: standard, enterprise)

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

  • lke_versions - The returned LKE Versions.

    • Sample Response:
          [
              {
                  "id": "1.32"
              },
              {
                  "id": "1.31"
              },
              {
                  "id": "1.30"
              }
          ]
          
          [
              {
                  "id": "v1.31.1+lke1",
                  "tier": "enterprise"
              }
          ]
          
    • See the Linode API response documentation for a list of returned fields