Skip to main content

ResourceV1beta2Api

All URIs are relative to http://localhost

Device Class​

MethodHTTP requestDescription
createDeviceClassPOST /apis/resource.k8s.io/v1beta2/deviceclassescreate a DeviceClass
readDeviceClassGET /apis/resource.k8s.io/v1beta2/deviceclasses/{name}Generated API methods accept optional request options as a second argument.
listDeviceClassGET /apis/resource.k8s.io/v1beta2/deviceclassesGenerated API methods accept optional request options as a second argument.
patchDeviceClassPATCH /apis/resource.k8s.io/v1beta2/deviceclasses/{name}partially update the specified DeviceClass
replaceDeviceClassPUT /apis/resource.k8s.io/v1beta2/deviceclasses/{name}replace the specified DeviceClass
deleteCollectionDeviceClassDELETE /apis/resource.k8s.io/v1beta2/deviceclassesGenerated API methods accept optional request options as a second argument.
deleteDeviceClassDELETE /apis/resource.k8s.io/v1beta2/deviceclasses/{name}Generated API methods accept optional request options as a second argument.

Device Taint Rule​

MethodHTTP requestDescription
createDeviceTaintRulePOST /apis/resource.k8s.io/v1beta2/devicetaintrulescreate a DeviceTaintRule
readDeviceTaintRuleGET /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}Generated API methods accept optional request options as a second argument.
listDeviceTaintRuleGET /apis/resource.k8s.io/v1beta2/devicetaintrulesGenerated API methods accept optional request options as a second argument.
readDeviceTaintRuleStatusGET /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/statusGenerated API methods accept optional request options as a second argument.
patchDeviceTaintRulePATCH /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}partially update the specified DeviceTaintRule
patchDeviceTaintRuleStatusPATCH /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/statuspartially update status of the specified DeviceTaintRule
replaceDeviceTaintRulePUT /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}replace the specified DeviceTaintRule
deleteCollectionDeviceTaintRuleDELETE /apis/resource.k8s.io/v1beta2/devicetaintrulesGenerated API methods accept optional request options as a second argument.
deleteDeviceTaintRuleDELETE /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}Generated API methods accept optional request options as a second argument.
replaceDeviceTaintRuleStatusPUT /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/statusreplace status of the specified DeviceTaintRule

Resource Claim​

MethodHTTP requestDescription
createNamespacedResourceClaimPOST /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimscreate a ResourceClaim
readNamespacedResourceClaimGET /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}Generated API methods accept optional request options as a second argument.
listNamespacedResourceClaimGET /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimsGenerated API methods accept optional request options as a second argument.
readNamespacedResourceClaimStatusGET /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/statusGenerated API methods accept optional request options as a second argument.
listResourceClaimForAllNamespacesGET /apis/resource.k8s.io/v1beta2/resourceclaimsGenerated API methods accept optional request options as a second argument.
patchNamespacedResourceClaimPATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}partially update the specified ResourceClaim
patchNamespacedResourceClaimStatusPATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/statuspartially update status of the specified ResourceClaim
replaceNamespacedResourceClaimPUT /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}replace the specified ResourceClaim
deleteCollectionNamespacedResourceClaimDELETE /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimsGenerated API methods accept optional request options as a second argument.
deleteNamespacedResourceClaimDELETE /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}Generated API methods accept optional request options as a second argument.
replaceNamespacedResourceClaimStatusPUT /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/statusreplace status of the specified ResourceClaim

Resource Claim Template​

MethodHTTP requestDescription
createNamespacedResourceClaimTemplatePOST /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplatescreate a ResourceClaimTemplate
readNamespacedResourceClaimTemplateGET /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}Generated API methods accept optional request options as a second argument.
listNamespacedResourceClaimTemplateGET /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplatesGenerated API methods accept optional request options as a second argument.
listResourceClaimTemplateForAllNamespacesGET /apis/resource.k8s.io/v1beta2/resourceclaimtemplatesGenerated API methods accept optional request options as a second argument.
patchNamespacedResourceClaimTemplatePATCH /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}partially update the specified ResourceClaimTemplate
replaceNamespacedResourceClaimTemplatePUT /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}replace the specified ResourceClaimTemplate
deleteCollectionNamespacedResourceClaimTemplateDELETE /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplatesGenerated API methods accept optional request options as a second argument.
deleteNamespacedResourceClaimTemplateDELETE /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}Generated API methods accept optional request options as a second argument.

Resource Slice​

MethodHTTP requestDescription
createResourceSlicePOST /apis/resource.k8s.io/v1beta2/resourceslicescreate a ResourceSlice
readResourceSliceGET /apis/resource.k8s.io/v1beta2/resourceslices/{name}Generated API methods accept optional request options as a second argument.
listResourceSliceGET /apis/resource.k8s.io/v1beta2/resourceslicesGenerated API methods accept optional request options as a second argument.
patchResourceSlicePATCH /apis/resource.k8s.io/v1beta2/resourceslices/{name}partially update the specified ResourceSlice
replaceResourceSlicePUT /apis/resource.k8s.io/v1beta2/resourceslices/{name}replace the specified ResourceSlice
deleteCollectionResourceSliceDELETE /apis/resource.k8s.io/v1beta2/resourceslicesGenerated API methods accept optional request options as a second argument.
deleteResourceSliceDELETE /apis/resource.k8s.io/v1beta2/resourceslices/{name}Generated API methods accept optional request options as a second argument.

APIResources​

MethodHTTP requestDescription
getAPIResourcesGET /apis/resource.k8s.io/v1beta2/Generated API methods accept optional request options as a second argument.

Device Class​

createDeviceClass​

V1beta2DeviceClass createDeviceClass(body)

create a DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiCreateDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiCreateDeviceClassRequest = {
body: { /* See V1beta2DeviceClass: /models/other#v1beta2deviceclass */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2DeviceClass
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClass

readDeviceClass​

V1beta2DeviceClass readDeviceClass()

Generated API methods accept optional request options as a second argument.

read the specified DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadDeviceClassRequest = {
// name of the DeviceClass
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the DeviceClassdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClass

listDeviceClass​

V1beta2DeviceClassList listDeviceClass()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListDeviceClassRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClassList

patchDeviceClass​

V1beta2DeviceClass patchDeviceClass(body)

partially update the specified DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchDeviceClassRequest = {
// name of the DeviceClass
name: "name_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the DeviceClassdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClass

replaceDeviceClass​

V1beta2DeviceClass replaceDeviceClass(body)

replace the specified DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceDeviceClassRequest = {
// name of the DeviceClass
name: "name_example",
body: { /* See V1beta2DeviceClass: /models/other#v1beta2deviceclass */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2DeviceClass
name[string]name of the DeviceClassdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClass

deleteCollectionDeviceClass​

V1Status deleteCollectionDeviceClass()

Generated API methods accept optional request options as a second argument.

delete collection of DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteCollectionDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteCollectionDeviceClassRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// 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)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...12 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type​

V1Status

deleteDeviceClass​

V1beta2DeviceClass deleteDeviceClass()

Generated API methods accept optional request options as a second argument.

delete a DeviceClass

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteDeviceClassRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteDeviceClassRequest = {
// name of the DeviceClass
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteDeviceClass(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the DeviceClassdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type​

V1beta2DeviceClass

Device Taint Rule​

createDeviceTaintRule​

V1beta2DeviceTaintRule createDeviceTaintRule(body)

create a DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiCreateDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiCreateDeviceTaintRuleRequest = {
body: { /* See V1beta2DeviceTaintRule: /models/other#v1beta2devicetaintrule */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2DeviceTaintRule
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

readDeviceTaintRule​

V1beta2DeviceTaintRule readDeviceTaintRule()

Generated API methods accept optional request options as a second argument.

read the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadDeviceTaintRuleRequest = {
// name of the DeviceTaintRule
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

listDeviceTaintRule​

V1beta2DeviceTaintRuleList listDeviceTaintRule()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListDeviceTaintRuleRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRuleList

readDeviceTaintRuleStatus​

V1beta2DeviceTaintRule readDeviceTaintRuleStatus()

Generated API methods accept optional request options as a second argument.

read status of the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadDeviceTaintRuleStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadDeviceTaintRuleStatusRequest = {
// name of the DeviceTaintRule
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readDeviceTaintRuleStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

patchDeviceTaintRule​

V1beta2DeviceTaintRule patchDeviceTaintRule(body)

partially update the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchDeviceTaintRuleRequest = {
// name of the DeviceTaintRule
name: "name_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

patchDeviceTaintRuleStatus​

V1beta2DeviceTaintRule patchDeviceTaintRuleStatus(body)

partially update status of the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchDeviceTaintRuleStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchDeviceTaintRuleStatusRequest = {
// name of the DeviceTaintRule
name: "name_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchDeviceTaintRuleStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

replaceDeviceTaintRule​

V1beta2DeviceTaintRule replaceDeviceTaintRule(body)

replace the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceDeviceTaintRuleRequest = {
// name of the DeviceTaintRule
name: "name_example",
body: { /* See V1beta2DeviceTaintRule: /models/other#v1beta2devicetaintrule */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2DeviceTaintRule
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

deleteCollectionDeviceTaintRule​

V1Status deleteCollectionDeviceTaintRule()

Generated API methods accept optional request options as a second argument.

delete collection of DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteCollectionDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteCollectionDeviceTaintRuleRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// 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)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...12 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type​

V1Status

deleteDeviceTaintRule​

V1beta2DeviceTaintRule deleteDeviceTaintRule()

Generated API methods accept optional request options as a second argument.

delete a DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteDeviceTaintRuleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteDeviceTaintRuleRequest = {
// name of the DeviceTaintRule
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteDeviceTaintRule(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

replaceDeviceTaintRuleStatus​

V1beta2DeviceTaintRule replaceDeviceTaintRuleStatus(body)

replace status of the specified DeviceTaintRule

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceDeviceTaintRuleStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceDeviceTaintRuleStatusRequest = {
// name of the DeviceTaintRule
name: "name_example",
body: { /* See V1beta2DeviceTaintRule: /models/other#v1beta2devicetaintrule */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceDeviceTaintRuleStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2DeviceTaintRule
name[string]name of the DeviceTaintRuledefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2DeviceTaintRule

Resource Claim​

createNamespacedResourceClaim​

V1beta2ResourceClaim createNamespacedResourceClaim(body)

create a ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiCreateNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiCreateNamespacedResourceClaimRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1beta2ResourceClaim: /models/other#v1beta2resourceclaim */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceClaim
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

readNamespacedResourceClaim​

V1beta2ResourceClaim readNamespacedResourceClaim()

Generated API methods accept optional request options as a second argument.

read the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadNamespacedResourceClaimRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

listNamespacedResourceClaim​

V1beta2ResourceClaimList listNamespacedResourceClaim()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListNamespacedResourceClaimRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimList

readNamespacedResourceClaimStatus​

V1beta2ResourceClaim readNamespacedResourceClaimStatus()

Generated API methods accept optional request options as a second argument.

read status of the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadNamespacedResourceClaimStatusRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedResourceClaimStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

listResourceClaimForAllNamespaces​

V1beta2ResourceClaimList listResourceClaimForAllNamespaces()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListResourceClaimForAllNamespacesRequest = {
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listResourceClaimForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimList

patchNamespacedResourceClaim​

V1beta2ResourceClaim patchNamespacedResourceClaim(body)

partially update the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchNamespacedResourceClaimRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

patchNamespacedResourceClaimStatus​

V1beta2ResourceClaim patchNamespacedResourceClaimStatus(body)

partially update status of the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchNamespacedResourceClaimStatusRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedResourceClaimStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

replaceNamespacedResourceClaim​

V1beta2ResourceClaim replaceNamespacedResourceClaim(body)

replace the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1beta2ResourceClaim: /models/other#v1beta2resourceclaim */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceClaim
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

deleteCollectionNamespacedResourceClaim​

V1Status deleteCollectionNamespacedResourceClaim()

Generated API methods accept optional request options as a second argument.

delete collection of ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// 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)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...12 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type​

V1Status

deleteNamespacedResourceClaim​

V1beta2ResourceClaim deleteNamespacedResourceClaim()

Generated API methods accept optional request options as a second argument.

delete a ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteNamespacedResourceClaimRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedResourceClaim(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

replaceNamespacedResourceClaimStatus​

V1beta2ResourceClaim replaceNamespacedResourceClaimStatus(body)

replace status of the specified ResourceClaim

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimStatusRequest = {
// name of the ResourceClaim
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1beta2ResourceClaim: /models/other#v1beta2resourceclaim */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedResourceClaimStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceClaim
name[string]name of the ResourceClaimdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaim

Resource Claim Template​

createNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplate createNamespacedResourceClaimTemplate(body)

create a ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiCreateNamespacedResourceClaimTemplateRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1beta2ResourceClaimTemplate: /models/other#v1beta2resourceclaimtemplate */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceClaimTemplate
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplate

readNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplate readNamespacedResourceClaimTemplate()

Generated API methods accept optional request options as a second argument.

read the specified ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadNamespacedResourceClaimTemplateRequest = {
// name of the ResourceClaimTemplate
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the ResourceClaimTemplatedefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplate

listNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListNamespacedResourceClaimTemplateRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplateList

listResourceClaimTemplateForAllNamespaces​

V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListResourceClaimTemplateForAllNamespacesRequest = {
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listResourceClaimTemplateForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplateList

patchNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(body)

partially update the specified ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchNamespacedResourceClaimTemplateRequest = {
// name of the ResourceClaimTemplate
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the ResourceClaimTemplatedefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplate

replaceNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(body)

replace the specified ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceNamespacedResourceClaimTemplateRequest = {
// name of the ResourceClaimTemplate
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1beta2ResourceClaimTemplate: /models/other#v1beta2resourceclaimtemplate */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceClaimTemplate
name[string]name of the ResourceClaimTemplatedefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplate

deleteCollectionNamespacedResourceClaimTemplate​

V1Status deleteCollectionNamespacedResourceClaimTemplate()

Generated API methods accept optional request options as a second argument.

delete collection of ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteCollectionNamespacedResourceClaimTemplateRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// 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)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...12 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type​

V1Status

deleteNamespacedResourceClaimTemplate​

V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate()

Generated API methods accept optional request options as a second argument.

delete a ResourceClaimTemplate

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteNamespacedResourceClaimTemplateRequest = {
// name of the ResourceClaimTemplate
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedResourceClaimTemplate(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ResourceClaimTemplatedefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceClaimTemplate

Resource Slice​

createResourceSlice​

V1beta2ResourceSlice createResourceSlice(body)

create a ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiCreateResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiCreateResourceSliceRequest = {
body: { /* See V1beta2ResourceSlice: /models/other#v1beta2resourceslice */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceSlice
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSlice

readResourceSlice​

V1beta2ResourceSlice readResourceSlice()

Generated API methods accept optional request options as a second argument.

read the specified ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReadResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReadResourceSliceRequest = {
// name of the ResourceSlice
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
name[string]name of the ResourceSlicedefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSlice

listResourceSlice​

V1beta2ResourceSliceList listResourceSlice()

Generated API methods accept optional request options as a second argument.

list or watch objects of kind ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiListResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiListResourceSliceRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// ...9 more optional parameter(s)
};

const data = await apiInstance.listResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSliceList

patchResourceSlice​

V1beta2ResourceSlice patchResourceSlice(body)

partially update the specified ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiPatchResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiPatchResourceSliceRequest = {
// name of the ResourceSlice
name: "name_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyany
name[string]name of the ResourceSlicedefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSlice

replaceResourceSlice​

V1beta2ResourceSlice replaceResourceSlice(body)

replace the specified ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiReplaceResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiReplaceResourceSliceRequest = {
// name of the ResourceSlice
name: "name_example",
body: { /* See V1beta2ResourceSlice: /models/other#v1beta2resourceslice */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1beta2ResourceSlice
name[string]name of the ResourceSlicedefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSlice

deleteCollectionResourceSlice​

V1Status deleteCollectionResourceSlice()

Generated API methods accept optional request options as a second argument.

delete collection of ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteCollectionResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteCollectionResourceSliceRequest = {
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, 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 client needs a consistent list, it must restart their list without the continue field. Otherwise, the 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)
_continue: "continue_example",
// 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)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...12 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
shardSelector[string]shardSelector restricts the list of returned objects using a CEL-based shard selector expression.(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type​

V1Status

deleteResourceSlice​

V1beta2ResourceSlice deleteResourceSlice()

Generated API methods accept optional request options as a second argument.

delete a ResourceSlice

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';
import type { ResourceV1beta2ApiDeleteResourceSliceRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request: ResourceV1beta2ApiDeleteResourceSliceRequest = {
// name of the ResourceSlice
name: "name_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// 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)
dryRun: "dryRun_example",
// 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)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteResourceSlice(request);
console.log('API called successfully. Returned data:', data);
Parameters​
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ResourceSlicedefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type​

V1beta2ResourceSlice

APIResources​

getAPIResources​

V1APIResourceList getAPIResources()

Generated API methods accept optional request options as a second argument.

get available resources

Example​
import { createConfiguration, ResourceV1beta2Api } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new ResourceV1beta2Api(configuration);

const request = {};

const data = await apiInstance.getAPIResources(request);
console.log('API called successfully. Returned data:', data);
Parameters​

This endpoint does not need any parameter.

Return type​

V1APIResourceList