kubernetes API官方文檔在github上經常打不開,於是就放在博客了,以下內容均復制於github
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
DELETE /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
DELETE /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
DELETE /api/v1/nodes/{name}/proxy | ||
DELETE /api/v1/nodes/{name}/proxy/{path} | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/attach | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/exec | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/portforward | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
GET /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
GET /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
GET /api/v1/nodes/{name}/proxy | ||
GET /api/v1/nodes/{name}/proxy/{path} | ||
HEAD /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
HEAD /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
HEAD /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
HEAD /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
HEAD /api/v1/nodes/{name}/proxy | ||
HEAD /api/v1/nodes/{name}/proxy/{path} | ||
OPTIONS /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
OPTIONS /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
OPTIONS /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
OPTIONS /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
OPTIONS /api/v1/nodes/{name}/proxy | ||
OPTIONS /api/v1/nodes/{name}/proxy/{path} | ||
PATCH /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
PATCH /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
PATCH /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
PATCH /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
PATCH /api/v1/nodes/{name}/proxy | ||
PATCH /api/v1/nodes/{name}/proxy/{path} | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/attach | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/exec | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/portforward | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
POST /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
POST /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
POST /api/v1/nodes/{name}/proxy | ||
POST /api/v1/nodes/{name}/proxy/{path} | ||
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy | ||
PUT /api/v1/namespaces/{namespace}/pods/{name}/proxy/{path} | ||
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy | ||
PUT /api/v1/namespaces/{namespace}/services/{name}/proxy/{path} | ||
PUT /api/v1/nodes/{name}/proxy | ||
PUT /api/v1/nodes/{name}/proxy/{path} | ||
POST /api/v1/namespaces | ||
POST /api/v1/namespaces/{namespace}/bindings | ||
POST /api/v1/namespaces/{namespace}/configmaps | ||
POST /api/v1/namespaces/{namespace}/endpoints | ||
POST /api/v1/namespaces/{namespace}/events | ||
POST /api/v1/namespaces/{namespace}/limitranges | ||
POST /api/v1/namespaces/{namespace}/persistentvolumeclaims | ||
POST /api/v1/namespaces/{namespace}/pods | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/binding | ||
POST /api/v1/namespaces/{namespace}/pods/{name}/eviction | ||
POST /api/v1/namespaces/{namespace}/podtemplates | ||
POST /api/v1/namespaces/{namespace}/replicationcontrollers | ||
POST /api/v1/namespaces/{namespace}/resourcequotas | ||
POST /api/v1/namespaces/{namespace}/secrets | ||
POST /api/v1/namespaces/{namespace}/services | ||
POST /api/v1/namespaces/{namespace}/serviceaccounts | ||
POST /api/v1/namespaces/{namespace}/serviceaccounts/{name}/token | ||
POST /api/v1/nodes | ||
POST /api/v1/persistentvolumes | ||
DELETE /api/v1/namespaces/{namespace}/configmaps | ||
DELETE /api/v1/namespaces/{namespace}/endpoints | ||
DELETE /api/v1/namespaces/{namespace}/events | ||
DELETE /api/v1/namespaces/{namespace}/limitranges | ||
DELETE /api/v1/namespaces/{namespace}/persistentvolumeclaims | ||
DELETE /api/v1/namespaces/{namespace}/pods | ||
DELETE /api/v1/namespaces/{namespace}/podtemplates | ||
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers | ||
DELETE /api/v1/namespaces/{namespace}/resourcequotas | ||
DELETE /api/v1/namespaces/{namespace}/secrets | ||
DELETE /api/v1/namespaces/{namespace}/serviceaccounts | ||
DELETE /api/v1/nodes | ||
DELETE /api/v1/persistentvolumes | ||
DELETE /api/v1/namespaces/{name} | ||
DELETE /api/v1/namespaces/{namespace}/configmaps/{name} | ||
DELETE /api/v1/namespaces/{namespace}/endpoints/{name} | ||
DELETE /api/v1/namespaces/{namespace}/events/{name} | ||
DELETE /api/v1/namespaces/{namespace}/limitranges/{name} | ||
DELETE /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | ||
DELETE /api/v1/namespaces/{namespace}/pods/{name} | ||
DELETE /api/v1/namespaces/{namespace}/podtemplates/{name} | ||
DELETE /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | ||
DELETE /api/v1/namespaces/{namespace}/resourcequotas/{name} | ||
DELETE /api/v1/namespaces/{namespace}/secrets/{name} | ||
DELETE /api/v1/namespaces/{namespace}/services/{name} | ||
DELETE /api/v1/namespaces/{namespace}/serviceaccounts/{name} | ||
DELETE /api/v1/nodes/{name} | ||
DELETE /api/v1/persistentvolumes/{name} | ||
GET /api/v1/ | ||
GET /api/v1/componentstatuses | ||
GET /api/v1/configmaps | ||
GET /api/v1/endpoints | ||
GET /api/v1/events | ||
GET /api/v1/limitranges | ||
GET /api/v1/namespaces | ||
GET /api/v1/namespaces/{namespace}/configmaps | ||
GET /api/v1/namespaces/{namespace}/endpoints | ||
GET /api/v1/namespaces/{namespace}/events | ||
GET /api/v1/namespaces/{namespace}/limitranges | ||
GET /api/v1/namespaces/{namespace}/persistentvolumeclaims | ||
GET /api/v1/namespaces/{namespace}/pods | ||
GET /api/v1/namespaces/{namespace}/podtemplates | ||
GET /api/v1/namespaces/{namespace}/replicationcontrollers | ||
GET /api/v1/namespaces/{namespace}/resourcequotas | ||
GET /api/v1/namespaces/{namespace}/secrets | ||
GET /api/v1/namespaces/{namespace}/services | ||
GET /api/v1/namespaces/{namespace}/serviceaccounts | ||
GET /api/v1/nodes | ||
GET /api/v1/persistentvolumes | ||
GET /api/v1/persistentvolumeclaims | ||
GET /api/v1/pods | ||
GET /api/v1/podtemplates | ||
GET /api/v1/replicationcontrollers | ||
GET /api/v1/resourcequotas | ||
GET /api/v1/secrets | ||
GET /api/v1/serviceaccounts | ||
GET /api/v1/services | ||
PATCH /api/v1/namespaces/{name} | ||
PATCH /api/v1/namespaces/{name}/status | ||
PATCH /api/v1/namespaces/{namespace}/configmaps/{name} | ||
PATCH /api/v1/namespaces/{namespace}/endpoints/{name} | ||
PATCH /api/v1/namespaces/{namespace}/events/{name} | ||
PATCH /api/v1/namespaces/{namespace}/limitranges/{name} | ||
PATCH /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | ||
PATCH /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | ||
PATCH /api/v1/namespaces/{namespace}/pods/{name} | ||
PATCH /api/v1/namespaces/{namespace}/pods/{name}/status | ||
PATCH /api/v1/namespaces/{namespace}/podtemplates/{name} | ||
PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | ||
PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | ||
PATCH /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | ||
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name} | ||
PATCH /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | ||
PATCH /api/v1/namespaces/{namespace}/secrets/{name} | ||
PATCH /api/v1/namespaces/{namespace}/services/{name} | ||
PATCH /api/v1/namespaces/{namespace}/serviceaccounts/{name} | ||
PATCH /api/v1/namespaces/{namespace}/services/{name}/status | ||
PATCH /api/v1/nodes/{name} | ||
PATCH /api/v1/nodes/{name}/status | ||
PATCH /api/v1/persistentvolumes/{name} | ||
PATCH /api/v1/persistentvolumes/{name}/status | ||
GET /api/v1/componentstatuses/{name} | ||
GET /api/v1/namespaces/{name} | ||
GET /api/v1/namespaces/{name}/status | ||
GET /api/v1/namespaces/{namespace}/configmaps/{name} | ||
GET /api/v1/namespaces/{namespace}/endpoints/{name} | ||
GET /api/v1/namespaces/{namespace}/events/{name} | ||
GET /api/v1/namespaces/{namespace}/limitranges/{name} | ||
GET /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | ||
GET /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | ||
GET /api/v1/namespaces/{namespace}/pods/{name} | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/log | ||
GET /api/v1/namespaces/{namespace}/pods/{name}/status | ||
GET /api/v1/namespaces/{namespace}/podtemplates/{name} | ||
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | ||
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | ||
GET /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | ||
GET /api/v1/namespaces/{namespace}/resourcequotas/{name} | ||
GET /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | ||
GET /api/v1/namespaces/{namespace}/secrets/{name} | ||
GET /api/v1/namespaces/{namespace}/services/{name} | ||
GET /api/v1/namespaces/{namespace}/serviceaccounts/{name} | ||
GET /api/v1/namespaces/{namespace}/services/{name}/status | ||
GET /api/v1/nodes/{name} | ||
GET /api/v1/nodes/{name}/status | ||
GET /api/v1/persistentvolumes/{name} | ||
GET /api/v1/persistentvolumes/{name}/status | ||
PUT /api/v1/namespaces/{name} | ||
PUT /api/v1/namespaces/{name}/finalize | ||
PUT /api/v1/namespaces/{name}/status | ||
PUT /api/v1/namespaces/{namespace}/configmaps/{name} | ||
PUT /api/v1/namespaces/{namespace}/endpoints/{name} | ||
PUT /api/v1/namespaces/{namespace}/events/{name} | ||
PUT /api/v1/namespaces/{namespace}/limitranges/{name} | ||
PUT /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name} | ||
PUT /api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status | ||
PUT /api/v1/namespaces/{namespace}/pods/{name} | ||
PUT /api/v1/namespaces/{namespace}/pods/{name}/status | ||
PUT /api/v1/namespaces/{namespace}/podtemplates/{name} | ||
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name} | ||
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale | ||
PUT /api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status | ||
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name} | ||
PUT /api/v1/namespaces/{namespace}/resourcequotas/{name}/status | ||
PUT /api/v1/namespaces/{namespace}/secrets/{name} | ||
PUT /api/v1/namespaces/{namespace}/services/{name} | ||
PUT /api/v1/namespaces/{namespace}/serviceaccounts/{name} | ||
PUT /api/v1/namespaces/{namespace}/services/{name}/status | ||
PUT /api/v1/nodes/{name} | ||
PUT /api/v1/nodes/{name}/status | ||
PUT /api/v1/persistentvolumes/{name} | ||
PUT /api/v1/persistentvolumes/{name}/status |
connect_delete_namespaced_pod_proxy
str connect_delete_namespaced_pod_proxy(name, namespace, path=path)
connect DELETE requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the PodProxyOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional)
try:
api_response = api_instance.connect_delete_namespaced_pod_proxy(name, namespace, path=path)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_delete_namespaced_pod_proxy_with_path
str connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect DELETE requests to proxy of Pod
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the PodProxyOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
path = 'path_example' # str | path to the resource
path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional)
try:
api_response = api_instance.connect_delete_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_delete_namespaced_service_proxy
str connect_delete_namespaced_service_proxy(name, namespace, path=path)
connect DELETE requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the ServiceProxyOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
try:
api_response = api_instance.connect_delete_namespaced_service_proxy(name, namespace, path=path)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_delete_namespaced_service_proxy_with_path
str connect_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect DELETE requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the ServiceProxyOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
path = 'path_example' # str | path to the resource
path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional)
try:
api_response = api_instance.connect_delete_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_delete_node_proxy
str connect_delete_node_proxy(name, path=path)
connect DELETE requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the NodeProxyOptions
path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional)
try:
api_response = api_instance.connect_delete_node_proxy(name, path=path)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_delete_node_proxy_with_path
str connect_delete_node_proxy_with_path(name, path, path2=path2)
connect DELETE requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the NodeProxyOptions
path = 'path_example' # str | path to the resource
path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional)
try:
api_response = api_instance.connect_delete_node_proxy_with_path(name, path, path2=path2)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_delete_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_pod_attach
str connect_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
connect GET requests to attach of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the PodAttachOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional)
stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional)
stdin = True # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional)
stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional)
tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional)
try:
api_response = api_instance.connect_get_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_get_namespaced_pod_attach: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodAttachOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
container | str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] |
stderr | bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] |
stdin | bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] |
stdout | bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] |
tty | bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_pod_exec
str connect_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
connect GET requests to exec of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function
import time
import kubernetes.client
from kubernetes.client.rest import ApiException
from pprint import pprint
configuration = kubernetes.client.Configuration()
# Configure API key authorization: BearerToken
configuration.api_key['authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['authorization'] = 'Bearer'
# Defining host is optional and default to http://localhost
configuration.host = "http://localhost"
# Enter a context with an instance of the API kubernetes.client
with kubernetes.client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kubernetes.client.CoreV1Api(api_client)
name = 'name_example' # str | name of the PodExecOptions
namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects
command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional)
container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional)
stderr = True # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional)
stdin = True # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional)
stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional)
tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional)
try:
api_response = api_instance.connect_get_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
pprint(api_response)
except ApiException as e:
print("Exception when calling CoreV1Api->connect_get_namespaced_pod_exec: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodExecOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
command | str | Command is the remote command to execute. argv array. Not executed within a shell. | [optional] |
container | str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] |
stderr | bool | Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] |
stdin | bool | Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] |
stdout | bool | Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] |
tty | bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_pod_portforward
str connect_get_namespaced_pod_portforward(name, namespace, ports=ports)
connect GET requests to portforward of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: api_response = api_instance.connect_get_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_pod_portforward: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodPortForwardOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
ports | int | List of ports to forward Required when using WebSockets | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_pod_proxy
str connect_get_namespaced_pod_proxy(name, namespace, path=path)
connect GET requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_get_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_pod_proxy_with_path
str connect_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect GET requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_get_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_service_proxy
str connect_get_namespaced_service_proxy(name, namespace, path=path)
connect GET requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_get_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_namespaced_service_proxy_with_path
str connect_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect GET requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_get_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_node_proxy
str connect_get_node_proxy(name, path=path)
connect GET requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_get_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_get_node_proxy_with_path
str connect_get_node_proxy_with_path(name, path, path2=path2)
connect GET requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_get_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_get_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_namespaced_pod_proxy
str connect_head_namespaced_pod_proxy(name, namespace, path=path)
connect HEAD requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_head_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_namespaced_pod_proxy_with_path
str connect_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect HEAD requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_head_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_namespaced_service_proxy
str connect_head_namespaced_service_proxy(name, namespace, path=path)
connect HEAD requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_head_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_namespaced_service_proxy_with_path
str connect_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect HEAD requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_head_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_node_proxy
str connect_head_node_proxy(name, path=path)
connect HEAD requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_head_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_head_node_proxy_with_path
str connect_head_node_proxy_with_path(name, path, path2=path2)
connect HEAD requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_head_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_head_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_namespaced_pod_proxy
str connect_options_namespaced_pod_proxy(name, namespace, path=path)
connect OPTIONS requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_options_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_namespaced_pod_proxy_with_path
str connect_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect OPTIONS requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_options_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_namespaced_service_proxy
str connect_options_namespaced_service_proxy(name, namespace, path=path)
connect OPTIONS requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_options_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_namespaced_service_proxy_with_path
str connect_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect OPTIONS requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_options_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_node_proxy
str connect_options_node_proxy(name, path=path)
connect OPTIONS requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_options_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_options_node_proxy_with_path
str connect_options_node_proxy_with_path(name, path, path2=path2)
connect OPTIONS requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_options_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_options_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_namespaced_pod_proxy
str connect_patch_namespaced_pod_proxy(name, namespace, path=path)
connect PATCH requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_patch_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_namespaced_pod_proxy_with_path
str connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect PATCH requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_patch_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_namespaced_service_proxy
str connect_patch_namespaced_service_proxy(name, namespace, path=path)
connect PATCH requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_patch_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_namespaced_service_proxy_with_path
str connect_patch_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect PATCH requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_patch_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_node_proxy
str connect_patch_node_proxy(name, path=path)
connect PATCH requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_patch_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_patch_node_proxy_with_path
str connect_patch_node_proxy_with_path(name, path, path2=path2)
connect PATCH requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_patch_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_patch_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_pod_attach
str connect_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
connect POST requests to attach of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodAttachOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) stderr = True # bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. (optional) stdin = True # bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) stdout = True # bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) try: api_response = api_instance.connect_post_namespaced_pod_attach(name, namespace, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_attach: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodAttachOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
container | str | The container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] |
stderr | bool | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. | [optional] |
stdin | bool | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. | [optional] |
stdout | bool | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. | [optional] |
tty | bool | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_pod_exec
str connect_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty)
connect POST requests to exec of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodExecOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects command = 'command_example' # str | Command is the remote command to execute. argv array. Not executed within a shell. (optional) container = 'container_example' # str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. (optional) stderr = True # bool | Redirect the standard error stream of the pod for this call. Defaults to true. (optional) stdin = True # bool | Redirect the standard input stream of the pod for this call. Defaults to false. (optional) stdout = True # bool | Redirect the standard output stream of the pod for this call. Defaults to true. (optional) tty = True # bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) try: api_response = api_instance.connect_post_namespaced_pod_exec(name, namespace, command=command, container=container, stderr=stderr, stdin=stdin, stdout=stdout, tty=tty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_exec: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodExecOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
command | str | Command is the remote command to execute. argv array. Not executed within a shell. | [optional] |
container | str | Container in which to execute the command. Defaults to only container if there is only one container in the pod. | [optional] |
stderr | bool | Redirect the standard error stream of the pod for this call. Defaults to true. | [optional] |
stdin | bool | Redirect the standard input stream of the pod for this call. Defaults to false. | [optional] |
stdout | bool | Redirect the standard output stream of the pod for this call. Defaults to true. | [optional] |
tty | bool | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_pod_portforward
str connect_post_namespaced_pod_portforward(name, namespace, ports=ports)
connect POST requests to portforward of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodPortForwardOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects ports = 56 # int | List of ports to forward Required when using WebSockets (optional) try: api_response = api_instance.connect_post_namespaced_pod_portforward(name, namespace, ports=ports) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_portforward: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodPortForwardOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
ports | int | List of ports to forward Required when using WebSockets | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_pod_proxy
str connect_post_namespaced_pod_proxy(name, namespace, path=path)
connect POST requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_post_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_pod_proxy_with_path
str connect_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect POST requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_post_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_service_proxy
str connect_post_namespaced_service_proxy(name, namespace, path=path)
connect POST requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_post_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_namespaced_service_proxy_with_path
str connect_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect POST requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_post_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_node_proxy
str connect_post_node_proxy(name, path=path)
connect POST requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_post_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_post_node_proxy_with_path
str connect_post_node_proxy_with_path(name, path, path2=path2)
connect POST requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_post_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_post_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_namespaced_pod_proxy
str connect_put_namespaced_pod_proxy(name, namespace, path=path)
connect PUT requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_put_namespaced_pod_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_namespaced_pod_proxy_with_path
str connect_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2)
connect PUT requests to proxy of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to pod. (optional) try: api_response = api_instance.connect_put_namespaced_pod_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_namespaced_pod_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to pod. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_namespaced_service_proxy
str connect_put_namespaced_service_proxy(name, namespace, path=path)
connect PUT requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_put_namespaced_service_proxy(name, namespace, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_namespaced_service_proxy_with_path
str connect_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2)
connect PUT requests to proxy of Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceProxyOptions namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) try: api_response = api_instance.connect_put_namespaced_service_proxy_with_path(name, namespace, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_namespaced_service_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceProxyOptions | |
namespace | str | object name and auth scope, such as for teams and projects | |
path | str | path to the resource | |
path2 | str | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_node_proxy
str connect_put_node_proxy(name, path=path)
connect PUT requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_put_node_proxy(name, path=path) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_node_proxy: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
connect_put_node_proxy_with_path
str connect_put_node_proxy_with_path(name, path, path2=path2)
connect PUT requests to proxy of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the NodeProxyOptions path = 'path_example' # str | path to the resource path2 = 'path_example' # str | Path is the URL path to use for the current proxy request to node. (optional) try: api_response = api_instance.connect_put_node_proxy_with_path(name, path, path2=path2) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->connect_put_node_proxy_with_path: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the NodeProxyOptions | |
path | str | path to the resource | |
path2 | str | Path is the URL path to use for the current proxy request to node. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: /
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
create_namespace
V1Namespace create_namespace(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespace(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_binding
V1Binding create_namespaced_binding(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty)
create a Binding
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Binding() # V1Binding | dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.create_namespaced_binding(namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_binding: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_config_map
V1ConfigMap create_namespaced_config_map(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_config_map(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_endpoints
V1Endpoints create_namespaced_endpoints(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_endpoints(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_event
V1Event create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create an Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_event(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_limit_range
V1LimitRange create_namespaced_limit_range(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_limit_range(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_persistent_volume_claim
V1PersistentVolumeClaim create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_persistent_volume_claim(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_pod
V1Pod create_namespaced_pod(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_pod(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_pod_binding
V1Binding create_namespaced_pod_binding(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty)
create binding of a Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Binding namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Binding() # V1Binding | dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.create_namespaced_pod_binding(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_pod_binding: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Binding | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_pod_eviction
V1beta1Eviction create_namespaced_pod_eviction(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty)
create eviction of a Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Eviction namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1beta1Eviction() # V1beta1Eviction | dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.create_namespaced_pod_eviction(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_pod_eviction: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Eviction | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_pod_template
V1PodTemplate create_namespaced_pod_template(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PodTemplate() # V1PodTemplate | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_pod_template(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_replication_controller
V1ReplicationController create_namespaced_replication_controller(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_replication_controller(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_resource_quota
V1ResourceQuota create_namespaced_resource_quota(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_resource_quota(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_secret
V1Secret create_namespaced_secret(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Secret() # V1Secret | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_secret(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_service
V1Service create_namespaced_service(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_service(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_service_account
V1ServiceAccount create_namespaced_service_account(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_namespaced_service_account(namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_namespaced_service_account_token
V1TokenRequest create_namespaced_service_account_token(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty)
create token of a ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the TokenRequest namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1TokenRequest() # V1TokenRequest | dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.create_namespaced_service_account_token(name, namespace, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_namespaced_service_account_token: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the TokenRequest | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_node
V1Node create_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_node(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
create_persistent_volume
V1PersistentVolume create_persistent_volume(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
create a PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.create_persistent_volume(body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->create_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_collection_namespaced_config_map
V1Status delete_collection_namespaced_config_map(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_config_map(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_endpoints
V1Status delete_collection_namespaced_endpoints(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_endpoints(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_event
V1Status delete_collection_namespaced_event(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_event(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_limit_range
V1Status delete_collection_namespaced_limit_range(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_limit_range(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_persistent_volume_claim
V1Status delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_persistent_volume_claim(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_pod
V1Status delete_collection_namespaced_pod(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_pod(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_pod_template
V1Status delete_collection_namespaced_pod_template(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_pod_template(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_replication_controller
V1Status delete_collection_namespaced_replication_controller(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_replication_controller(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_resource_quota
V1Status delete_collection_namespaced_resource_quota(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_resource_quota(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_secret
V1Status delete_collection_namespaced_secret(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_secret(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_namespaced_service_account
V1Status delete_collection_namespaced_service_account(namespace, pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_namespaced_service_account(namespace, pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_node
V1Status delete_collection_node(pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_node(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_collection_persistent_volume
V1Status delete_collection_persistent_volume(pretty=pretty, continue=continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body)
delete collection of PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_collection_persistent_volume(pretty=pretty, _continue=_continue, dry_run=dry_run, field_selector=field_selector, grace_period_seconds=grace_period_seconds, label_selector=label_selector, limit=limit, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, resource_version=resource_version, timeout_seconds=timeout_seconds, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_collection_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pretty | str | If 'true', then the output is pretty printed. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
delete_namespace
V1Status delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespace(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_config_map
V1Status delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_config_map(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ConfigMap | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_endpoints
V1Status delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_endpoints(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Endpoints | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_event
V1Status delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete an Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_event(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Event | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_limit_range
V1Status delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_limit_range(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the LimitRange | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_persistent_volume_claim
V1Status delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_pod
V1Status delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_pod(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_pod_template
V1Status delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_pod_template(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodTemplate | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_replication_controller
V1Status delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_replication_controller(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_resource_quota
V1Status delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_resource_quota(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_secret
V1Status delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_secret(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Secret | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_service
V1Status delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_service(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_namespaced_service_account
V1Status delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_namespaced_service_account(name, namespace, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceAccount | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_node
V1Status delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_node(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
delete_persistent_volume
V1Status delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body)
delete a PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) orphan_dependents = True # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) body = kubernetes.client.V1DeleteOptions() # V1DeleteOptions | (optional) try: api_response = api_instance.delete_persistent_volume(name, pretty=pretty, dry_run=dry_run, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy, body=body) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->delete_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
grace_period_seconds | int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
orphan_dependents | bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
propagation_policy | str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] |
body | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 202 | Accepted | - | 401 | Unauthorized | - |
get_api_resources
V1APIResourceList get_api_resources()
get available resources
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) try: api_response = api_instance.get_api_resources() pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->get_api_resources: %s\n" % e)
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_component_status
V1ComponentStatusList list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list objects of kind ComponentStatus
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_component_status(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_component_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_config_map_for_all_namespaces
V1ConfigMapList list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_config_map_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_config_map_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_endpoints_for_all_namespaces
V1EndpointsList list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_endpoints_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_endpoints_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_event_for_all_namespaces
V1EventList list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_event_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_event_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_limit_range_for_all_namespaces
V1LimitRangeList list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_limit_range_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_limit_range_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespace
V1NamespaceList list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespace(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_config_map
V1ConfigMapList list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_config_map(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_endpoints
V1EndpointsList list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_endpoints(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_event
V1EventList list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_event(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_limit_range
V1LimitRangeList list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_limit_range(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_persistent_volume_claim
V1PersistentVolumeClaimList list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_persistent_volume_claim(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_pod
V1PodList list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_pod(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_pod_template
V1PodTemplateList list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_pod_template(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_replication_controller
V1ReplicationControllerList list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_replication_controller(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_resource_quota
V1ResourceQuotaList list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_resource_quota(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_secret
V1SecretList list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_secret(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_service
V1ServiceList list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_service(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_namespaced_service_account
V1ServiceAccountList list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_namespaced_service_account(namespace, pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_node
V1NodeList list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_node(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_persistent_volume
V1PersistentVolumeList list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_persistent_volume(pretty=pretty, allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
pretty | str | If 'true', then the output is pretty printed. | [optional] |
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_persistent_volume_claim_for_all_namespaces
V1PersistentVolumeClaimList list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_persistent_volume_claim_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_persistent_volume_claim_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_pod_for_all_namespaces
V1PodList list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_pod_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_pod_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_pod_template_for_all_namespaces
V1PodTemplateList list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_pod_template_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_pod_template_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_replication_controller_for_all_namespaces
V1ReplicationControllerList list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_replication_controller_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_replication_controller_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_resource_quota_for_all_namespaces
V1ResourceQuotaList list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_resource_quota_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_resource_quota_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_secret_for_all_namespaces
V1SecretList list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_secret_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_secret_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_service_account_for_all_namespaces
V1ServiceAccountList list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_service_account_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_service_account_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
list_service_for_all_namespaces
V1ServiceList list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, continue=continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch)
list or watch objects of kind Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) allow_watch_bookmarks = True # bool | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. (optional) _continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) timeout_seconds = 56 # int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) watch = True # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: api_response = api_instance.list_service_for_all_namespaces(allow_watch_bookmarks=allow_watch_bookmarks, _continue=_continue, field_selector=field_selector, label_selector=label_selector, limit=limit, pretty=pretty, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->list_service_for_all_namespaces: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
allow_watch_bookmarks | bool | allowWatchBookmarks requests watch events with type "BOOKMARK". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is beta. | [optional] |
_continue | str | The continue option should be set when retrieving more results from the server. Since this value is server defined, kubernetes.clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the kubernetes.client needs a consistent list, it must restart their list without the continue field. Otherwise, the kubernetes.client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] |
field_selector | str | A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] |
label_selector | str | A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] |
limit | int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and kubernetes.clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, kubernetes.clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a kubernetes.client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
resource_version | str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] |
timeout_seconds | int | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] |
watch | bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespace
V1Namespace patch_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespace_status
V1Namespace patch_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespace_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_config_map
V1ConfigMap patch_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ConfigMap | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_endpoints
V1Endpoints patch_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Endpoints | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_event
V1Event patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Event | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_limit_range
V1LimitRange patch_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the LimitRange | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_persistent_volume_claim
V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_persistent_volume_claim_status
V1PersistentVolumeClaim patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_persistent_volume_claim_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_pod
V1Pod patch_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_pod_status
V1Pod patch_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_pod_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_pod_template
V1PodTemplate patch_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodTemplate | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_replication_controller
V1ReplicationController patch_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_replication_controller_scale
V1Scale patch_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update scale of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_scale: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Scale | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_replication_controller_status
V1ReplicationController patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_replication_controller_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_resource_quota
V1ResourceQuota patch_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_resource_quota_status
V1ResourceQuota patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_resource_quota_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_secret
V1Secret patch_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Secret | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_service
V1Service patch_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_service_account
V1ServiceAccount patch_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceAccount | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_namespaced_service_status
V1Service patch_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_namespaced_service_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_node
V1Node patch_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_node_status
V1Node patch_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_node_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_persistent_volume
V1PersistentVolume patch_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
patch_persistent_volume_status
V1PersistentVolume patch_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force)
partially update status of the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume body = None # object | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) force = True # bool | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) try: api_response = api_instance.patch_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager, force=force) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->patch_persistent_volume_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
body | object | ||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] |
force | bool | Force is going to "force" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json, application/apply-patch+yaml
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_component_status
V1ComponentStatus read_component_status(name, pretty=pretty)
read the specified ComponentStatus
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ComponentStatus pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_component_status(name, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_component_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ComponentStatus | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespace
V1Namespace read_namespace(name, pretty=pretty, exact=exact, export=export)
read the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespace(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespace_status
V1Namespace read_namespace_status(name, pretty=pretty)
read status of the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespace_status(name, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespace_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_config_map
V1ConfigMap read_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_config_map(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ConfigMap | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_endpoints
V1Endpoints read_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_endpoints(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Endpoints | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_event
V1Event read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_event(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Event | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_limit_range
V1LimitRange read_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_limit_range(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the LimitRange | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_persistent_volume_claim
V1PersistentVolumeClaim read_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_persistent_volume_claim(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_persistent_volume_claim_status
V1PersistentVolumeClaim read_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty)
read status of the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_persistent_volume_claim_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_persistent_volume_claim_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_pod
V1Pod read_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_pod(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_pod_log
str read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps)
read log of the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects container = 'container_example' # str | The container for which to stream logs. Defaults to only container if there is one container in the pod. (optional) follow = True # bool | Follow the log stream of the pod. Defaults to false. (optional) limit_bytes = 56 # int | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) previous = True # bool | Return previous terminated container logs. Defaults to false. (optional) since_seconds = 56 # int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) tail_lines = 56 # int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) timestamps = True # bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) try: api_response = api_instance.read_namespaced_pod_log(name, namespace, container=container, follow=follow, limit_bytes=limit_bytes, pretty=pretty, previous=previous, since_seconds=since_seconds, tail_lines=tail_lines, timestamps=timestamps) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod_log: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
container | str | The container for which to stream logs. Defaults to only container if there is one container in the pod. | [optional] |
follow | bool | Follow the log stream of the pod. Defaults to false. | [optional] |
limit_bytes | int | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
previous | bool | Return previous terminated container logs. Defaults to false. | [optional] |
since_seconds | int | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. | [optional] |
tail_lines | int | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime | [optional] |
timestamps | bool | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. | [optional] |
Return type
str
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_pod_status
V1Pod read_namespaced_pod_status(name, namespace, pretty=pretty)
read status of the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_pod_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_pod_template
V1PodTemplate read_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_pod_template(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodTemplate | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_replication_controller
V1ReplicationController read_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_replication_controller(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_replication_controller_scale
V1Scale read_namespaced_replication_controller_scale(name, namespace, pretty=pretty)
read scale of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_replication_controller_scale(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_replication_controller_scale: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Scale | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_replication_controller_status
V1ReplicationController read_namespaced_replication_controller_status(name, namespace, pretty=pretty)
read status of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_replication_controller_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_replication_controller_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_resource_quota
V1ResourceQuota read_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_resource_quota(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_resource_quota_status
V1ResourceQuota read_namespaced_resource_quota_status(name, namespace, pretty=pretty)
read status of the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_resource_quota_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_resource_quota_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_secret
V1Secret read_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_secret(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Secret | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_service
V1Service read_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_service(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_service_account
V1ServiceAccount read_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export)
read the specified ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_namespaced_service_account(name, namespace, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceAccount | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_namespaced_service_status
V1Service read_namespaced_service_status(name, namespace, pretty=pretty)
read status of the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_namespaced_service_status(name, namespace, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_namespaced_service_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_node
V1Node read_node(name, pretty=pretty, exact=exact, export=export)
read the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_node(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_node_status
V1Node read_node_status(name, pretty=pretty)
read status of the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_node_status(name, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_node_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_persistent_volume
V1PersistentVolume read_persistent_volume(name, pretty=pretty, exact=exact, export=export)
read the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) exact = True # bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) export = True # bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) try: api_response = api_instance.read_persistent_volume(name, pretty=pretty, exact=exact, export=export) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
exact | bool | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. | [optional] |
export | bool | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
read_persistent_volume_status
V1PersistentVolume read_persistent_volume_status(name, pretty=pretty)
read status of the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.read_persistent_volume_status(name, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->read_persistent_volume_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 401 | Unauthorized | - |
replace_namespace
V1Namespace replace_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespace(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespace: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespace_finalize
V1Namespace replace_namespace_finalize(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty)
replace finalize of the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) try: api_response = api_instance.replace_namespace_finalize(name, body, dry_run=dry_run, field_manager=field_manager, pretty=pretty) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespace_finalize: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
body | |||
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
pretty | str | If 'true', then the output is pretty printed. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespace_status
V1Namespace replace_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified Namespace
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Namespace body = kubernetes.client.V1Namespace() # V1Namespace | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespace_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespace_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Namespace | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_config_map
V1ConfigMap replace_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified ConfigMap
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ConfigMap namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ConfigMap() # V1ConfigMap | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_config_map(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_config_map: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ConfigMap | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_endpoints
V1Endpoints replace_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Endpoints
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Endpoints namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Endpoints() # V1Endpoints | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_endpoints(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_endpoints: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Endpoints | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_event
V1Event replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Event
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Event namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Event() # V1Event | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_event(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_event: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Event | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_limit_range
V1LimitRange replace_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified LimitRange
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the LimitRange namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1LimitRange() # V1LimitRange | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_limit_range(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_limit_range: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the LimitRange | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_persistent_volume_claim
V1PersistentVolumeClaim replace_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_persistent_volume_claim(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_persistent_volume_claim_status
V1PersistentVolumeClaim replace_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified PersistentVolumeClaim
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolumeClaim namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PersistentVolumeClaim() # V1PersistentVolumeClaim | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_persistent_volume_claim_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_persistent_volume_claim_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolumeClaim | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_pod
V1Pod replace_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_pod(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_pod: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_pod_status
V1Pod replace_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified Pod
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Pod namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Pod() # V1Pod | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_pod_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_pod_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Pod | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_pod_template
V1PodTemplate replace_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified PodTemplate
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PodTemplate namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1PodTemplate() # V1PodTemplate | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_pod_template(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_pod_template: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PodTemplate | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_replication_controller
V1ReplicationController replace_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_replication_controller(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_replication_controller: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_replication_controller_scale
V1Scale replace_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace scale of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Scale namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Scale() # V1Scale | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_replication_controller_scale(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_scale: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Scale | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_replication_controller_status
V1ReplicationController replace_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified ReplicationController
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ReplicationController namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ReplicationController() # V1ReplicationController | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_replication_controller_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_replication_controller_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ReplicationController | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_resource_quota
V1ResourceQuota replace_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_resource_quota(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_resource_quota: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_resource_quota_status
V1ResourceQuota replace_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified ResourceQuota
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ResourceQuota namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ResourceQuota() # V1ResourceQuota | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_resource_quota_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_resource_quota_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ResourceQuota | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_secret
V1Secret replace_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Secret
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Secret namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Secret() # V1Secret | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_secret(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_secret: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Secret | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_service
V1Service replace_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_service(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_service: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_service_account
V1ServiceAccount replace_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified ServiceAccount
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the ServiceAccount namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1ServiceAccount() # V1ServiceAccount | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_service_account(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_service_account: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the ServiceAccount | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_namespaced_service_status
V1Service replace_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified Service
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Service namespace = 'namespace_example' # str | object name and auth scope, such as for teams and projects body = kubernetes.client.V1Service() # V1Service | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_namespaced_service_status(name, namespace, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_namespaced_service_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Service | |
namespace | str | object name and auth scope, such as for teams and projects | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_node
V1Node replace_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_node(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_node: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_node_status
V1Node replace_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified Node
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the Node body = kubernetes.client.V1Node() # V1Node | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_node_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_node_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the Node | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_persistent_volume
V1PersistentVolume replace_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_persistent_volume(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_persistent_volume: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |
replace_persistent_volume_status
V1PersistentVolume replace_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager)
replace status of the specified PersistentVolume
Example
-
Api Key Authentication (BearerToken):
from __future__ import print_function import time import kubernetes.client from kubernetes.client.rest import ApiException from pprint import pprint configuration = kubernetes.client.Configuration() # Configure API key authorization: BearerToken configuration.api_key['authorization'] = 'YOUR_API_KEY' # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # configuration.api_key_prefix['authorization'] = 'Bearer' # Defining host is optional and default to http://localhost configuration.host = "http://localhost" # Enter a context with an instance of the API kubernetes.client with kubernetes.client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = kubernetes.client.CoreV1Api(api_client) name = 'name_example' # str | name of the PersistentVolume body = kubernetes.client.V1PersistentVolume() # V1PersistentVolume | pretty = 'pretty_example' # str | If 'true', then the output is pretty printed. (optional) dry_run = 'dry_run_example' # str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) field_manager = 'field_manager_example' # str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) try: api_response = api_instance.replace_persistent_volume_status(name, body, pretty=pretty, dry_run=dry_run, field_manager=field_manager) pprint(api_response) except ApiException as e: print("Exception when calling CoreV1Api->replace_persistent_volume_status: %s\n" % e)
Parameters
Name | Type | Description | Notes |
---|---|---|---|
name | str | name of the PersistentVolume | |
body | |||
pretty | str | If 'true', then the output is pretty printed. | [optional] |
dry_run | str | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
field_manager | str | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] |
Return type
Authorization
HTTP request headers
-
Content-Type: Not defined
-
Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf
HTTP response details
| Status code | Description | Response headers | |-------------|-------------|------------------| 200 | OK | - | 201 | Created | - | 401 | Unauthorized | - |