k8s_client.views.nodes

Module Contents

Functions

get_nodes([context_name])

Get nodes list

k8s_client.views.nodes.get_nodes(context_name=None)

Get nodes list

Parameters

"context_name": string (optional)

The name of the context of which showing the nodes. if value is None the default context name will be used.

Returns

  • [code: 200] JSON containing the full list of nodes of the default context if context_name is None `

  • [code: 200] JSON containing the full list of nodes of the specified context if context_name is a <valid value>

  • [code: 500] Error message if context_name is NOT a <valid value>