Skip to main content

NetworkingV1Api

All URIs are relative to http://localhost

IPAddress

MethodHTTP requestDescription
createIPAddressPOST /apis/networking.k8s.io/v1/ipaddressescreate an IPAddress
readIPAddressGET /apis/networking.k8s.io/v1/ipaddresses/{name}read the specified IPAddress
listIPAddressGET /apis/networking.k8s.io/v1/ipaddresseslist or watch objects of kind IPAddress
patchIPAddressPATCH /apis/networking.k8s.io/v1/ipaddresses/{name}partially update the specified IPAddress
replaceIPAddressPUT /apis/networking.k8s.io/v1/ipaddresses/{name}replace the specified IPAddress
deleteCollectionIPAddressDELETE /apis/networking.k8s.io/v1/ipaddressesdelete collection of IPAddress
deleteIPAddressDELETE /apis/networking.k8s.io/v1/ipaddresses/{name}delete an IPAddress

Ingress Class

MethodHTTP requestDescription
createIngressClassPOST /apis/networking.k8s.io/v1/ingressclassescreate an IngressClass
readIngressClassGET /apis/networking.k8s.io/v1/ingressclasses/{name}read the specified IngressClass
listIngressClassGET /apis/networking.k8s.io/v1/ingressclasseslist or watch objects of kind IngressClass
patchIngressClassPATCH /apis/networking.k8s.io/v1/ingressclasses/{name}partially update the specified IngressClass
replaceIngressClassPUT /apis/networking.k8s.io/v1/ingressclasses/{name}replace the specified IngressClass
deleteCollectionIngressClassDELETE /apis/networking.k8s.io/v1/ingressclassesdelete collection of IngressClass
deleteIngressClassDELETE /apis/networking.k8s.io/v1/ingressclasses/{name}delete an IngressClass

Ingress

MethodHTTP requestDescription
createNamespacedIngressPOST /apis/networking.k8s.io/v1/namespaces/{namespace}/ingressescreate an Ingress
readNamespacedIngressGET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}read the specified Ingress
listNamespacedIngressGET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresseslist or watch objects of kind Ingress
readNamespacedIngressStatusGET /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/statusread status of the specified Ingress
listIngressForAllNamespacesGET /apis/networking.k8s.io/v1/ingresseslist or watch objects of kind Ingress
patchNamespacedIngressPATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}partially update the specified Ingress
patchNamespacedIngressStatusPATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/statuspartially update status of the specified Ingress
replaceNamespacedIngressPUT /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}replace the specified Ingress
deleteCollectionNamespacedIngressDELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/ingressesdelete collection of Ingress
deleteNamespacedIngressDELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}delete an Ingress
replaceNamespacedIngressStatusPUT /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/statusreplace status of the specified Ingress

Network Policy

MethodHTTP requestDescription
createNamespacedNetworkPolicyPOST /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpoliciescreate a NetworkPolicy
readNamespacedNetworkPolicyGET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}read the specified NetworkPolicy
listNamespacedNetworkPolicyGET /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicieslist or watch objects of kind NetworkPolicy
listNetworkPolicyForAllNamespacesGET /apis/networking.k8s.io/v1/networkpolicieslist or watch objects of kind NetworkPolicy
patchNamespacedNetworkPolicyPATCH /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}partially update the specified NetworkPolicy
replaceNamespacedNetworkPolicyPUT /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}replace the specified NetworkPolicy
deleteCollectionNamespacedNetworkPolicyDELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpoliciesdelete collection of NetworkPolicy
deleteNamespacedNetworkPolicyDELETE /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}delete a NetworkPolicy

Service CIDR

MethodHTTP requestDescription
createServiceCIDRPOST /apis/networking.k8s.io/v1/servicecidrscreate a ServiceCIDR
readServiceCIDRGET /apis/networking.k8s.io/v1/servicecidrs/{name}read the specified ServiceCIDR
listServiceCIDRGET /apis/networking.k8s.io/v1/servicecidrslist or watch objects of kind ServiceCIDR
readServiceCIDRStatusGET /apis/networking.k8s.io/v1/servicecidrs/{name}/statusread status of the specified ServiceCIDR
patchServiceCIDRPATCH /apis/networking.k8s.io/v1/servicecidrs/{name}partially update the specified ServiceCIDR
patchServiceCIDRStatusPATCH /apis/networking.k8s.io/v1/servicecidrs/{name}/statuspartially update status of the specified ServiceCIDR
replaceServiceCIDRPUT /apis/networking.k8s.io/v1/servicecidrs/{name}replace the specified ServiceCIDR
deleteCollectionServiceCIDRDELETE /apis/networking.k8s.io/v1/servicecidrsdelete collection of ServiceCIDR
deleteServiceCIDRDELETE /apis/networking.k8s.io/v1/servicecidrs/{name}delete a ServiceCIDR
replaceServiceCIDRStatusPUT /apis/networking.k8s.io/v1/servicecidrs/{name}/statusreplace status of the specified ServiceCIDR

APIResources

MethodHTTP requestDescription
getAPIResourcesGET /apis/networking.k8s.io/v1/get available resources

IPAddress

createIPAddress

V1IPAddress createIPAddress(body)

create an IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiCreateIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiCreateIPAddressRequest = {
body: { /* See V1IPAddress: /models/networking#v1ipaddress */ },
// 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.createIPAddress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1IPAddress
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

V1IPAddress

readIPAddress

V1IPAddress readIPAddress()

read the specified IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadIPAddressRequest = {
// name of the IPAddress
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.readIPAddress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the IPAddressdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1IPAddress

listIPAddress

V1IPAddressList listIPAddress()

list or watch objects of kind IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListIPAddressRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listIPAddress(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
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

V1IPAddressList

patchIPAddress

V1IPAddress patchIPAddress(body)

partially update the specified IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchIPAddressRequest = {
// name of the IPAddress
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.patchIPAddress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the IPAddressdefaults 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

V1IPAddress

replaceIPAddress

V1IPAddress replaceIPAddress(body)

replace the specified IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceIPAddressRequest = {
// name of the IPAddress
name: "name_example",
body: { /* See V1IPAddress: /models/networking#v1ipaddress */ },
// 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.replaceIPAddress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1IPAddress
name[string]name of the IPAddressdefaults 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

V1IPAddress

deleteCollectionIPAddress

V1Status deleteCollectionIPAddress()

delete collection of IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteCollectionIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteCollectionIPAddressRequest = {
// 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 */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionIPAddress(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
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

deleteIPAddress

V1Status deleteIPAddress()

delete an IPAddress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteIPAddressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteIPAddressRequest = {
// name of the IPAddress
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.deleteIPAddress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the IPAddressdefaults 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

V1Status

Ingress Class

createIngressClass

V1IngressClass createIngressClass(body)

create an IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiCreateIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiCreateIngressClassRequest = {
body: { /* See V1IngressClass: /models/networking#v1ingressclass */ },
// 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.createIngressClass(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1IngressClass
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

V1IngressClass

readIngressClass

V1IngressClass readIngressClass()

read the specified IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadIngressClassRequest = {
// name of the IngressClass
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.readIngressClass(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the IngressClassdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1IngressClass

listIngressClass

V1IngressClassList listIngressClass()

list or watch objects of kind IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListIngressClassRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listIngressClass(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
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

V1IngressClassList

patchIngressClass

V1IngressClass patchIngressClass(body)

partially update the specified IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchIngressClassRequest = {
// name of the IngressClass
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.patchIngressClass(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the IngressClassdefaults 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

V1IngressClass

replaceIngressClass

V1IngressClass replaceIngressClass(body)

replace the specified IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceIngressClassRequest = {
// name of the IngressClass
name: "name_example",
body: { /* See V1IngressClass: /models/networking#v1ingressclass */ },
// 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.replaceIngressClass(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1IngressClass
name[string]name of the IngressClassdefaults 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

V1IngressClass

deleteCollectionIngressClass

V1Status deleteCollectionIngressClass()

delete collection of IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteCollectionIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteCollectionIngressClassRequest = {
// 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 */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionIngressClass(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
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

deleteIngressClass

V1Status deleteIngressClass()

delete an IngressClass

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteIngressClassRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteIngressClassRequest = {
// name of the IngressClass
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.deleteIngressClass(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the IngressClassdefaults 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

V1Status

Ingress

createNamespacedIngress

V1Ingress createNamespacedIngress(body)

create an Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiCreateNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiCreateNamespacedIngressRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "networking.k8s.io/v1", kind: "Ingress", metadata: { name: "example" }, spec: { rules: [{ host: "example.com", http: { paths: [{ path: "/", pathType: "Prefix", backend: { service: { name: "example", port: { number: 80 } } } }] } }] } }, // See full type: /models/networking#v1ingress,
// 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.createNamespacedIngress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Ingress
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

V1Ingress

readNamespacedIngress

V1Ingress readNamespacedIngress()

read the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadNamespacedIngressRequest = {
// name of the Ingress
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.readNamespacedIngress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Ingressdefaults 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

V1Ingress

listNamespacedIngress

V1IngressList listNamespacedIngress()

list or watch objects of kind Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListNamespacedIngressRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedIngress(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
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

V1IngressList

readNamespacedIngressStatus

V1Ingress readNamespacedIngressStatus()

read status of the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadNamespacedIngressStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadNamespacedIngressStatusRequest = {
// name of the Ingress
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.readNamespacedIngressStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Ingressdefaults 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

V1Ingress

listIngressForAllNamespaces

V1IngressList listIngressForAllNamespaces()

list or watch objects of kind Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListIngressForAllNamespacesRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListIngressForAllNamespacesRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listIngressForAllNamespaces(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
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

V1IngressList

patchNamespacedIngress

V1Ingress patchNamespacedIngress(body)

partially update the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchNamespacedIngressRequest = {
// name of the Ingress
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.patchNamespacedIngress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Ingressdefaults 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

V1Ingress

patchNamespacedIngressStatus

V1Ingress patchNamespacedIngressStatus(body)

partially update status of the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchNamespacedIngressStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchNamespacedIngressStatusRequest = {
// name of the Ingress
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.patchNamespacedIngressStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Ingressdefaults 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

V1Ingress

replaceNamespacedIngress

V1Ingress replaceNamespacedIngress(body)

replace the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceNamespacedIngressRequest = {
// name of the Ingress
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "networking.k8s.io/v1", kind: "Ingress", metadata: { name: "example" }, spec: { rules: [{ host: "example.com", http: { paths: [{ path: "/", pathType: "Prefix", backend: { service: { name: "example", port: { number: 80 } } } }] } }] } }, // See full type: /models/networking#v1ingress,
// 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.replaceNamespacedIngress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Ingress
name[string]name of the Ingressdefaults 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

V1Ingress

deleteCollectionNamespacedIngress

V1Status deleteCollectionNamespacedIngress()

delete collection of Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteCollectionNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest = {
// 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 */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedIngress(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
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

deleteNamespacedIngress

V1Status deleteNamespacedIngress()

delete an Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteNamespacedIngressRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteNamespacedIngressRequest = {
// name of the Ingress
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.deleteNamespacedIngress(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the Ingressdefaults 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

V1Status

replaceNamespacedIngressStatus

V1Ingress replaceNamespacedIngressStatus(body)

replace status of the specified Ingress

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceNamespacedIngressStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceNamespacedIngressStatusRequest = {
// name of the Ingress
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "networking.k8s.io/v1", kind: "Ingress", metadata: { name: "example" }, spec: { rules: [{ host: "example.com", http: { paths: [{ path: "/", pathType: "Prefix", backend: { service: { name: "example", port: { number: 80 } } } }] } }] } }, // See full type: /models/networking#v1ingress,
// 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.replaceNamespacedIngressStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Ingress
name[string]name of the Ingressdefaults 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

V1Ingress

Network Policy

createNamespacedNetworkPolicy

V1NetworkPolicy createNamespacedNetworkPolicy(body)

create a NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiCreateNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1NetworkPolicy: /models/networking#v1networkpolicy */ },
// 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.createNamespacedNetworkPolicy(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1NetworkPolicy
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

V1NetworkPolicy

readNamespacedNetworkPolicy

V1NetworkPolicy readNamespacedNetworkPolicy()

read the specified NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadNamespacedNetworkPolicyRequest = {
// name of the NetworkPolicy
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.readNamespacedNetworkPolicy(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the NetworkPolicydefaults 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

V1NetworkPolicy

listNamespacedNetworkPolicy

V1NetworkPolicyList listNamespacedNetworkPolicy()

list or watch objects of kind NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListNamespacedNetworkPolicyRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedNetworkPolicy(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
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

V1NetworkPolicyList

listNetworkPolicyForAllNamespaces

V1NetworkPolicyList listNetworkPolicyForAllNamespaces()

list or watch objects of kind NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNetworkPolicyForAllNamespaces(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
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

V1NetworkPolicyList

patchNamespacedNetworkPolicy

V1NetworkPolicy patchNamespacedNetworkPolicy(body)

partially update the specified NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest = {
// name of the NetworkPolicy
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.patchNamespacedNetworkPolicy(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the NetworkPolicydefaults 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

V1NetworkPolicy

replaceNamespacedNetworkPolicy

V1NetworkPolicy replaceNamespacedNetworkPolicy(body)

replace the specified NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest = {
// name of the NetworkPolicy
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1NetworkPolicy: /models/networking#v1networkpolicy */ },
// 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.replaceNamespacedNetworkPolicy(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1NetworkPolicy
name[string]name of the NetworkPolicydefaults 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

V1NetworkPolicy

deleteCollectionNamespacedNetworkPolicy

V1Status deleteCollectionNamespacedNetworkPolicy()

delete collection of NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest = {
// 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 */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedNetworkPolicy(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
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

deleteNamespacedNetworkPolicy

V1Status deleteNamespacedNetworkPolicy()

delete a NetworkPolicy

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest = {
// name of the NetworkPolicy
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.deleteNamespacedNetworkPolicy(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the NetworkPolicydefaults 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

V1Status

Service CIDR

createServiceCIDR

V1ServiceCIDR createServiceCIDR(body)

create a ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiCreateServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiCreateServiceCIDRRequest = {
body: { /* See V1ServiceCIDR: /models/core#v1servicecidr */ },
// 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.createServiceCIDR(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ServiceCIDR
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

V1ServiceCIDR

readServiceCIDR

V1ServiceCIDR readServiceCIDR()

read the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadServiceCIDRRequest = {
// name of the ServiceCIDR
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.readServiceCIDR(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the ServiceCIDRdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1ServiceCIDR

listServiceCIDR

V1ServiceCIDRList listServiceCIDR()

list or watch objects of kind ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiListServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiListServiceCIDRRequest = {
// 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",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listServiceCIDR(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
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

V1ServiceCIDRList

readServiceCIDRStatus

V1ServiceCIDR readServiceCIDRStatus()

read status of the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReadServiceCIDRStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReadServiceCIDRStatusRequest = {
// name of the ServiceCIDR
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.readServiceCIDRStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the ServiceCIDRdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1ServiceCIDR

patchServiceCIDR

V1ServiceCIDR patchServiceCIDR(body)

partially update the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchServiceCIDRRequest = {
// name of the ServiceCIDR
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.patchServiceCIDR(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the ServiceCIDRdefaults 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

V1ServiceCIDR

patchServiceCIDRStatus

V1ServiceCIDR patchServiceCIDRStatus(body)

partially update status of the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiPatchServiceCIDRStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiPatchServiceCIDRStatusRequest = {
// name of the ServiceCIDR
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.patchServiceCIDRStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the ServiceCIDRdefaults 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

V1ServiceCIDR

replaceServiceCIDR

V1ServiceCIDR replaceServiceCIDR(body)

replace the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceServiceCIDRRequest = {
// name of the ServiceCIDR
name: "name_example",
body: { /* See V1ServiceCIDR: /models/core#v1servicecidr */ },
// 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.replaceServiceCIDR(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ServiceCIDR
name[string]name of the ServiceCIDRdefaults 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

V1ServiceCIDR

deleteCollectionServiceCIDR

V1Status deleteCollectionServiceCIDR()

delete collection of ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteCollectionServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteCollectionServiceCIDRRequest = {
// 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 */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionServiceCIDR(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
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

deleteServiceCIDR

V1Status deleteServiceCIDR()

delete a ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiDeleteServiceCIDRRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiDeleteServiceCIDRRequest = {
// name of the ServiceCIDR
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.deleteServiceCIDR(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ServiceCIDRdefaults 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

V1Status

replaceServiceCIDRStatus

V1ServiceCIDR replaceServiceCIDRStatus(body)

replace status of the specified ServiceCIDR

Example
import { createConfiguration, NetworkingV1Api } from '@kubernetes/client-node';
import type { NetworkingV1ApiReplaceServiceCIDRStatusRequest } from '@kubernetes/client-node';

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

const request: NetworkingV1ApiReplaceServiceCIDRStatusRequest = {
// name of the ServiceCIDR
name: "name_example",
body: { /* See V1ServiceCIDR: /models/core#v1servicecidr */ },
// 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.replaceServiceCIDRStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ServiceCIDR
name[string]name of the ServiceCIDRdefaults 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

V1ServiceCIDR

APIResources

getAPIResources

V1APIResourceList getAPIResources()

get available resources

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

const configuration = createConfiguration();
const apiInstance = new NetworkingV1Api(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