# EncryptFileDataJob

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.EncryptFileDataJob/

Struct for a vault optimization job.

- **Full name:** `MFiles.EncryptFileDataJob`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-vault_guid"></a>`vault_guid` | `string` | 1 | The GUID of the vault. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCVaultsAdmin.EncryptFileData](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/EncryptFileData/index.md): Encrypts the existing files of a vault with the vault's latest encryption key.

<a id="used-in-fields"></a>

## Used in fields

- [`JobDataUnion.encrypt_file_data`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.JobDataUnion/index.md#f-encrypt_file_data): Vault file data encryption job.
- [`EncryptFileDataRequest.encryptfiledatajob`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCVaultsAdmin/EncryptFileData/index.md#request): The job. Set `vault_guid` to the GUID of the vault.
