Skip to content

Latest commit

 

History

History
1464 lines (1093 loc) · 67.6 KB

File metadata and controls

1464 lines (1093 loc) · 67.6 KB

BatchV2alpha1Api

All URIs are relative to https://localhost

Method HTTP request Description
createNamespacedCronJob POST /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs
createNamespacedScheduledJob POST /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs
deleteCollectionNamespacedCronJob DELETE /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs
deleteCollectionNamespacedScheduledJob DELETE /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs
deleteNamespacedCronJob DELETE /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}
deleteNamespacedScheduledJob DELETE /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}
getAPIResources GET /apis/batch/v2alpha1/
listCronJobForAllNamespaces GET /apis/batch/v2alpha1/cronjobs
listNamespacedCronJob GET /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs
listNamespacedScheduledJob GET /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs
listScheduledJobForAllNamespaces GET /apis/batch/v2alpha1/scheduledjobs
patchNamespacedCronJob PATCH /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}
patchNamespacedCronJobStatus PATCH /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status
patchNamespacedScheduledJob PATCH /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}
patchNamespacedScheduledJobStatus PATCH /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status
readNamespacedCronJob GET /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}
readNamespacedCronJobStatus GET /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status
readNamespacedScheduledJob GET /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}
readNamespacedScheduledJobStatus GET /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status
replaceNamespacedCronJob PUT /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}
replaceNamespacedCronJobStatus PUT /apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status
replaceNamespacedScheduledJob PUT /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}
replaceNamespacedScheduledJobStatus PUT /apis/batch/v2alpha1/namespaces/{namespace}/scheduledjobs/{name}/status

createNamespacedCronJob

V2alpha1CronJob createNamespacedCronJob(namespace, body, pretty)

create a CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#createNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

createNamespacedScheduledJob

V2alpha1CronJob createNamespacedScheduledJob(namespace, body, pretty)

create a ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.createNamespacedScheduledJob(namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#createNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

deleteCollectionNamespacedCronJob

V1Status deleteCollectionNamespacedCronJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch)

delete collection of CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#deleteCollectionNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V1Status

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

deleteCollectionNamespacedScheduledJob

V1Status deleteCollectionNamespacedScheduledJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch)

delete collection of ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V1Status result = apiInstance.deleteCollectionNamespacedScheduledJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#deleteCollectionNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V1Status

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

deleteNamespacedCronJob

V1Status deleteNamespacedCronJob(name, namespace, body, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy)

delete a CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
Integer gracePeriodSeconds = 56; // Integer | 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.
Boolean orphanDependents = true; // Boolean | 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.
String propagationPolicy = "propagationPolicy_example"; // String | 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.
try {
    V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, body, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#deleteNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
body V1DeleteOptions
pretty String If 'true', then the output is pretty printed. [optional]
gracePeriodSeconds Integer 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]
orphanDependents Boolean 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]
propagationPolicy String 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. [optional]

Return type

V1Status

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

deleteNamespacedScheduledJob

V1Status deleteNamespacedScheduledJob(name, namespace, body, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy)

delete a ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
Integer gracePeriodSeconds = 56; // Integer | 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.
Boolean orphanDependents = true; // Boolean | 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.
String propagationPolicy = "propagationPolicy_example"; // String | 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.
try {
    V1Status result = apiInstance.deleteNamespacedScheduledJob(name, namespace, body, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#deleteNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
body V1DeleteOptions
pretty String If 'true', then the output is pretty printed. [optional]
gracePeriodSeconds Integer 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]
orphanDependents Boolean 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]
propagationPolicy String 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. [optional]

Return type

V1Status

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

getAPIResources

V1APIResourceList getAPIResources()

get available resources

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
try {
    V1APIResourceList result = apiInstance.getAPIResources();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#getAPIResources");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

V1APIResourceList

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json, application/yaml, application/vnd.kubernetes.protobuf
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

listCronJobForAllNamespaces

V2alpha1CronJobList listCronJobForAllNamespaces(fieldSelector, labelSelector, pretty, resourceVersion, timeoutSeconds, watch)

list or watch objects of kind CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V2alpha1CronJobList result = apiInstance.listCronJobForAllNamespaces(fieldSelector, labelSelector, pretty, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#listCronJobForAllNamespaces");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
pretty String If 'true', then the output is pretty printed. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V2alpha1CronJobList

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch

listNamespacedCronJob

V2alpha1CronJobList listNamespacedCronJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch)

list or watch objects of kind CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V2alpha1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#listNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V2alpha1CronJobList

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch

listNamespacedScheduledJob

V2alpha1CronJobList listNamespacedScheduledJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch)

list or watch objects of kind ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V2alpha1CronJobList result = apiInstance.listNamespacedScheduledJob(namespace, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#listNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V2alpha1CronJobList

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch

listScheduledJobForAllNamespaces

V2alpha1CronJobList listScheduledJobForAllNamespaces(fieldSelector, labelSelector, pretty, resourceVersion, timeoutSeconds, watch)

list or watch objects of kind ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything.
String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything.
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
String resourceVersion = "resourceVersion_example"; // String | 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.
Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call.
Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
try {
    V2alpha1CronJobList result = apiInstance.listScheduledJobForAllNamespaces(fieldSelector, labelSelector, pretty, resourceVersion, timeoutSeconds, watch);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#listScheduledJobForAllNamespaces");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
fieldSelector String A selector to restrict the list of returned objects by their fields. Defaults to everything. [optional]
labelSelector String A selector to restrict the list of returned objects by their labels. Defaults to everything. [optional]
pretty String If 'true', then the output is pretty printed. [optional]
resourceVersion String 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]
timeoutSeconds Integer Timeout for the list/watch call. [optional]
watch Boolean Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. [optional]

Return type

V2alpha1CronJobList

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch

patchNamespacedCronJob

V2alpha1CronJob patchNamespacedCronJob(name, namespace, body, pretty)

partially update the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
Object body = null; // Object | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
body Object
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

patchNamespacedCronJobStatus

V2alpha1CronJob patchNamespacedCronJobStatus(name, namespace, body, pretty)

partially update status of the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
Object body = null; // Object | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
body Object
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

patchNamespacedScheduledJob

V2alpha1CronJob patchNamespacedScheduledJob(name, namespace, body, pretty)

partially update the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
Object body = null; // Object | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.patchNamespacedScheduledJob(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
body Object
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

patchNamespacedScheduledJobStatus

V2alpha1CronJob patchNamespacedScheduledJobStatus(name, namespace, body, pretty)

partially update status of the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
Object body = null; // Object | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.patchNamespacedScheduledJobStatus(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedScheduledJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
body Object
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

readNamespacedCronJob

V2alpha1CronJob readNamespacedCronJob(name, namespace, pretty, exact, export)

read the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
Boolean exact = true; // Boolean | Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'.
Boolean export = true; // Boolean | Should this value be exported.  Export strips fields that a user can not specify.
try {
    V2alpha1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty, exact, export);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
exact Boolean Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. [optional]
export Boolean Should this value be exported. Export strips fields that a user can not specify. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

readNamespacedCronJobStatus

V2alpha1CronJob readNamespacedCronJobStatus(name, namespace, pretty)

read status of the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

readNamespacedScheduledJob

V2alpha1CronJob readNamespacedScheduledJob(name, namespace, pretty, exact, export)

read the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
Boolean exact = true; // Boolean | Should the export be exact.  Exact export maintains cluster-specific fields like 'Namespace'.
Boolean export = true; // Boolean | Should this value be exported.  Export strips fields that a user can not specify.
try {
    V2alpha1CronJob result = apiInstance.readNamespacedScheduledJob(name, namespace, pretty, exact, export);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]
exact Boolean Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. [optional]
export Boolean Should this value be exported. Export strips fields that a user can not specify. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

readNamespacedScheduledJobStatus

V2alpha1CronJob readNamespacedScheduledJobStatus(name, namespace, pretty)

read status of the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.readNamespacedScheduledJobStatus(name, namespace, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedScheduledJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

replaceNamespacedCronJob

V2alpha1CronJob replaceNamespacedCronJob(name, namespace, body, pretty)

replace the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

replaceNamespacedCronJobStatus

V2alpha1CronJob replaceNamespacedCronJobStatus(name, namespace, body, pretty)

replace status of the specified CronJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the CronJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the CronJob
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

replaceNamespacedScheduledJob

V2alpha1CronJob replaceNamespacedScheduledJob(name, namespace, body, pretty)

replace the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.replaceNamespacedScheduledJob(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedScheduledJob");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf

replaceNamespacedScheduledJobStatus

V2alpha1CronJob replaceNamespacedScheduledJobStatus(name, namespace, body, pretty)

replace status of the specified ScheduledJob

Example

// Import classes:
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.Configuration;
//import io.kubernetes.client.auth.*;
//import io.kubernetes.client.apis.BatchV2alpha1Api;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: BearerToken
ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken");
BearerToken.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//BearerToken.setApiKeyPrefix("Token");

BatchV2alpha1Api apiInstance = new BatchV2alpha1Api();
String name = "name_example"; // String | name of the ScheduledJob
String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects
V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | 
String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed.
try {
    V2alpha1CronJob result = apiInstance.replaceNamespacedScheduledJobStatus(name, namespace, body, pretty);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedScheduledJobStatus");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
name String name of the ScheduledJob
namespace String object name and auth scope, such as for teams and projects
body V2alpha1CronJob
pretty String If 'true', then the output is pretty printed. [optional]

Return type

V2alpha1CronJob

Authorization

BearerToken

HTTP request headers

  • Content-Type: /
  • Accept: application/json, application/yaml, application/vnd.kubernetes.protobuf