Project: Headlamp (Observability and Analysis / Observability)
File: lib_k8s_ingress.Ingress.md

title: "Class: Ingress" linkTitle: "Ingress" slug: "libk8singress.Ingress" .Ingress `any` `Ingress` new Ingress(`json`) | Name | Type | | : | : | | `json` | | makeKubeObject<KubeIngress\>('ingress').constructor `Static` apiEndpoint: `Object` | Name | Type | | : | : | | `scale?` | { `get`: (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> ; `put`: (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> } | | `scale.get` | (`namespace`: `string`, `name`: `string`, `clusterName?`: `string`) => `Promise`<`any`\> | | `scale.put` | (`body`: { `metadata`: ; `spec`: { `replicas`: `number` } }, `clusterName?`: `string`) => `Promise`<`any`\> | _ `Static` className: `string` makeKubeObject<KubeIngress\>('ingress').className `get` spec(): `Object` `Object` | Name | Type | | : | : | | `defaultBackend?` | { `resource?`: { `apiVersion`: `string` ; `kind`: `string` ; `name`: `string` } ; `service?`: { `name`: `string` ; `port`: { `name?`: `string` ; `number?`: `number` } } } | | `defaultBackend.resource?` | { `apiVersion`: `string` ; `kind`: `string` ; `name`: `string` } | | `defaultBackend.resource.apiVersion` | `string` | | `defaultBackend.resource.kind` | `string` | | `defaultBackend.resource.name` | `string` | | `defaultBackend.service?` | { `name`: `string` ; `port`: { `name?`: `string` ; `number?`: `number` } } | | `defaultBackend.service.name` | `string` | | `defaultBackend.service.port` | { `name?`: `string` ; `number?`: `number` } | | `defaultBackend.service.port.name?` | `string` | | `defaultBackend.service.port.number?` | `number` | | `ingressClassName?` | `string` | | `rules` | [] \| `LegacyIngressRule`[] | | `tls?` | { `hosts`: `string`[] ; `secretName`: `string` }[] | _ `Static` `get` listRoute(): `string` `string` _ `Static` `get` pluralName(): `string` `string` getHosts(): `string` `string` _ getRules(): [] [] _ `Static` apiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubeIngress\>('ingress').apiList _ `Static` `Optional` getAuthorization(`arg`, `resourceAttrs?`): `any` | Name | Type | | : | : | | `arg` | `string` | | `resourceAttrs?` | | `any` makeKubeObject<KubeIngress\>('ingress').getAuthorization _ `Static` getErrorMessage(`err?`): ``null`` \| `string` | Name | Type | | : | : | | `err?` | ``null`` \| | ``null`` \| `string` makeKubeObject<KubeIngress\>('ingress').getErrorMessage _ `Static` useApiGet(`onGet`, `name`, `namespace?`, `onError?`): `void` | Name | Type | | : | : | | `onGet` | (...`args`: `any`) => `void` | | `name` | `string` | | `namespace?` | `string` | | `onError?` | (`err`: ) => `void` | `void` makeKubeObject<KubeIngress\>('ingress').useApiGet _ `Static` useApiList(`onList`, `onError?`, `opts?`): `any` | Name | Type | | : | : | | `onList` | (`arg`: `any`[]) => `void` | | `onError?` | (`err`: ) => `void` | | `opts?` | | `any` makeKubeObject<KubeIngress\>('ingress').useApiList _ `Static` useGet(`name`, `namespace?`): , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] | Name | Type | | : | : | | `name` | `string` | | `namespace?` | `string` | , (`item`: `any`) => `void`, (`err`: ``null`` \| ) => `void`] makeKubeObject<KubeIngress\>('ingress').useGet _ `Static` useList(`opts?`): , (`items`: `any`) => `void`] | Name | Type | | : | : | | `opts?` | | , (`items`: `any`) => `void`] makeKubeObject<KubeIngress\>('ingress').useList