# TeleportOktaImportRule

This guide is a comprehensive reference to the fields in the `TeleportOktaImportRule` resource, which you can apply after installing the Teleport Kubernetes operator.

## resources.teleport.dev/v1

**apiVersion:** resources.teleport.dev/v1

| Field      | Type            | Description                                                                                                                                                                                                                                                                                          |
| ---------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| apiVersion | string          | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources>  |
| kind       | string          | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds> |
| metadata   | object          |                                                                                                                                                                                                                                                                                                      |
| spec       | [object](#spec) | OktaImportRule resource definition v1 from Teleport                                                                                                                                                                                                                                                  |

### spec

| Field    | Type                             | Description                                                                                           |
| -------- | -------------------------------- | ----------------------------------------------------------------------------------------------------- |
| mappings | \[][object](#specmappings-items) | Mappings is a list of matches that will map match conditions to labels.                               |
| priority | integer                          | Priority represents the priority of the rule application. Lower numbered rules will be applied first. |

### spec.mappings items

| Field       | Type                                        | Description                                                                                                 |
| ----------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| add\_labels | [object](#specmappings-itemsadd_labels)     | AddLabels specifies which labels to add if any of the previous matches match.                               |
| match       | \[][object](#specmappings-itemsmatch-items) | Match is a set of matching rules for this mapping. If any of these match, then the mapping will be applied. |

### spec.mappings items.add\_labels

| Field | Type   | Description |
| ----- | ------ | ----------- |
| key   | string |             |
| value | string |             |

### spec.mappings items.match items

| Field                | Type      | Description                                                         |
| -------------------- | --------- | ------------------------------------------------------------------- |
| app\_ids             | \[]string | AppIDs is a list of app IDs to match against.                       |
| app\_name\_regexes   | \[]string | AppNameRegexes is a list of regexes to match against app names.     |
| group\_ids           | \[]string | GroupIDs is a list of group IDs to match against.                   |
| group\_name\_regexes | \[]string | GroupNameRegexes is a list of regexes to match against group names. |
