- [Resource: DaiAuthenticationKey](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.daiAuthenticationKeys.md.txt#DaiAuthenticationKey)
  - [JSON representation](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.daiAuthenticationKeys.md.txt#DaiAuthenticationKey.SCHEMA_REPRESENTATION)
- [DaiAuthenticationKeyStatus](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.daiAuthenticationKeys.md.txt#DaiAuthenticationKeyStatus)
- [DaiAuthenticationKeyType](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.daiAuthenticationKeys.md.txt#DaiAuthenticationKeyType)
- [Methods](https://developers.google.com/ad-manager/api/reference/rest/v1/networks.daiAuthenticationKeys.md.txt#METHODS_SUMMARY)

## Resource: DaiAuthenticationKey

A DaiAuthenticationKey is used to authenticate stream requests to the IMA SDK API.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "key": string, "status": enum (`DaiAuthenticationKeyStatus`), "displayName": string, "keyType": enum (`DaiAuthenticationKeyType`) } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the `DaiAuthenticationKey`. Format: `networks/{networkCode}/daiAuthenticationKeys/{daiAuthenticationKey}` |
| `createTime` | ``string (`Timestamp` format)`` Output only. The date and time this DaiAuthenticationKey was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `key` | `string` Output only. The value of the secure key. |
| `status` | ``enum (`DaiAuthenticationKeyStatus`)`` Output only. The status of this DaiAuthenticationKey. DAI authentication keys are created in the `` `ACTIVE` `` state. Only active keys will be accepted by the IMA SDK API as valid. |
| `displayName` | `string` Required. The name for this DaiAuthenticationKey. |
| `keyType` | ``enum (`DaiAuthenticationKeyType`)`` Optional. The type of this key, which determines how it should be used on stream create requests. |

## DaiAuthenticationKeyStatus

Statuses associated with DaiAuthenticationKey objects.

| Enums ||
|---|---|
| `DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED` | Default value. This value is unused. |
| `ACTIVE` | Indicates that the API key is actively in use and that the IMA SDK API should accept it as a valid key in requests. |
| `INACTIVE` | Indicates that the API key is no longer is use and that the IMA SDK API should not accept it as a valid key in requests. |

## DaiAuthenticationKeyType

Key types associated with DaiAuthenticationKey objects.

| Enums ||
|---|---|
| `DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED` | Default value. This value is unused. |
| `API` | Indicates that the key is a standard API key and should be used with the api-key SDK parameter when authenticating stream create requests. |
| `HMAC` | Indicates that the key is an HMAC key and should be used to generate a signature for the stream create request with the auth-token SDK parameter. |

| ## Methods ||
|---|---|
| ### `batchActivate` | Activates a list of `DaiAuthenticationKey` objects. |
| ### `batchCreate` | Batch creates `DaiAuthenticationKey` objects. |
| ### `batchDeactivate` | Deactivates a list of `DaiAuthenticationKey` objects. |
| ### `batchUpdate` | Batch updates `DaiAuthenticationKey` objects. |
| ### `create` | Creates a `DaiAuthenticationKey` object. |
| ### `get` | Retrieves a `DaiAuthenticationKey` object. |
| ### `list` | Lists `DaiAuthenticationKey` objects. |
| ### `patch` | Updates a `DaiAuthenticationKey` object. |