# KubernetesNamespaceAccess

> Resource KubernetesNamespaceAccess in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Resource KubernetesNamespaceAccess in pulumi-portainer.

Pulumi type: `portainer:index/kubernetesNamespaceAccess:KubernetesNamespaceAccess`.

`name` is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const resource = new portainer.KubernetesNamespaceAccess(
  "kubernetesNamespaceAccess",
  {
    endpointId: 0,
    namespaceId: "<namespaceId>",
  },
)
```

## Arguments

| Property                      | Type       | Required | Description                                                                         |
| ----------------------------- | ---------- | -------- | ----------------------------------------------------------------------------------- |
| `endpointId`                  | `number`   | yes      | Identifier of the Portainer Kubernetes endpoint owning the namespace.               |
| `kubernetesNamespaceAccessId` | `string`   | no       |                                                                                     |
| `namespaceId`                 | `string`   | yes      | Name (identifier) of the Kubernetes namespace whose access policy is being updated. |
| `teamsToAdds`                 | `number[]` | no       | List of Portainer team identifiers to grant access to the namespace.                |
| `teamsToRemoves`              | `number[]` | no       | List of Portainer team identifiers whose namespace access should be revoked.        |
| `usersToAdds`                 | `number[]` | no       | List of Portainer user identifiers to grant access to the namespace.                |
| `usersToRemoves`              | `number[]` | no       | List of Portainer user identifiers whose namespace access should be revoked.        |

## Outputs

Computed outputs are produced by the provider. They are not constructor arguments.

| Property                      | Type       | Computed | Description                                                                         |
| ----------------------------- | ---------- | -------- | ----------------------------------------------------------------------------------- |
| `endpointId`                  | `number`   | no       | Identifier of the Portainer Kubernetes endpoint owning the namespace.               |
| `kubernetesNamespaceAccessId` | `string`   | no       |                                                                                     |
| `namespaceId`                 | `string`   | no       | Name (identifier) of the Kubernetes namespace whose access policy is being updated. |
| `teamsToAdds`                 | `number[]` | no       | List of Portainer team identifiers to grant access to the namespace.                |
| `teamsToRemoves`              | `number[]` | no       | List of Portainer team identifiers whose namespace access should be revoked.        |
| `usersToAdds`                 | `number[]` | no       | List of Portainer user identifiers to grant access to the namespace.                |
| `usersToRemoves`              | `number[]` | no       | List of Portainer user identifiers whose namespace access should be revoked.        |
