---
title: "PUT /encryptionkey/reset"
method: PUT
path: "/encryptionkey/reset"
---

# PUT /encryptionkey/reset

`PUT /encryptionkey/reset`

Resets an encryption key. After the key is reset your resources will be encrypted by an Amazon Web Services owned key.

## Request body

- object
  - `scanType` 'NETWORK' | 'PACKAGE' | 'CODE', required — The scan type the key encrypts.
  - `resourceType` 'AWS_EC2_INSTANCE' | 'AWS_ECR_CONTAINER_IMAGE' | 'AWS_ECR_REPOSITORY' | 'AWS_LAMBDA_FUNCTION' | 'CODE_REPOSITORY' | 'Microsoft.Compute/virtualMachines' | 'Microsoft.ContainerRegistry/registry/containerImage' | 'Microsoft.Web/sites', required — The resource type the key encrypts.

## Response `200`

Success

- ResetEncryptionKeyResponse

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ThrottlingException
- `483` — ResourceNotFoundException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/inspector2.md) · [All operations](https://skmtc.net/aws/apis/inspector2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/inspector2/versions/c51110c7cd43/schema)
