# Reference for the teleport\_trusted\_device Terraform resource

This page describes the supported values of the teleport\_trusted\_device resource of the Teleport Terraform provider.

## Example Usage

```
# Trusted device resource

resource "teleport_trusted_device" "TESTDEVICE1" {
  version = "v1"
  spec = {
    asset_tag = "TESTDEVICE1"
    os_type   = "macos"
  }
}

```

## Schema

### Required

- `version` (String) Version is the API version used to create the resource. It must be specified. Based on this version, Teleport will apply different defaults on resource creation or deletion. It must be an integer prefixed by "v". For example: `v1`

### Optional

- `metadata` (Attributes) Metadata is resource metadata (see [below for nested schema](#nested-schema-for-metadata))
- `spec` (Attributes) Specification of the device. (see [below for nested schema](#nested-schema-for-spec))

### Nested Schema for `metadata`

Optional:

- `labels` (Map of String) Labels is a set of labels
- `name` (String) Name is an object name

### Nested Schema for `spec`

Required:

- `asset_tag` (String)
- `os_type` (String)

Optional:

- `enroll_status` (String)
- `owner` (String)
- `source` (Attributes) (see [below for nested schema](#nested-schema-for-specsource))

### Nested Schema for `spec.source`

Optional:

- `name` (String)
- `origin` (String)
