k8s_client.views.contexts

Module Contents

Functions

get_contexts()

Get contexts list

get_context(context_name)

Get the context info

get_context_busy_jobs(context_name)

Get the info of the busy jobs of the provided context

k8s_client.views.contexts.get_contexts()

Get contexts list

Parameters

NONE

Returns

  • [code: 200] list [dict]

    JSON containing the full contexts

k8s_client.views.contexts.get_context(context_name)

Get the context info

Parameters

"context_name": string (optional)

The name of the context of which having the data.

Returns

  • [code: 200] dict

    JSON containing the data of the default context if context_name is a <valid value> `

  • [code: 404] string

    Error message if context_name is NOT a <valid value>

k8s_client.views.contexts.get_context_busy_jobs(context_name)

Get the info of the busy jobs of the provided context

Parameters

"context_name": string (optional)

The name of the context of which having the data.

Returns

  • [code: 200] dict

    JSON containing the data of the default context if context_name is a <valid value> `

  • [code: 404] string

    Error message if context_name is NOT a <valid value>