k8s_client.views.pods¶
Module Contents¶
Functions¶
|
Get pods list |
- k8s_client.views.pods.get_pods(context_name=None, node_name=None)¶
Get pods list
Parameters¶
"context_name": string (optional)The name of the context of which showing the pods. if
valueis None the default context name will be used."node_name": string (optional)The name of the node inside the context of which showing the pods.
Returns¶
JSON containing the full list of pods of the default context if
context_nameis None andnode_nameis NoneJSON containing the full list of pods of the specified context if
context_nameis a <valid value> andnode_nameis NoneJSON containing the full list of pods of the node of the specified context if
context_nameis a <valid value> andnode_nameis a <valid value>Error message with return code 500 if
context_nameis NOT a <valid value>JSON containing empty pods list if
node_nameis NOT a <valid value>