[egulu CLI reference](../index.md) / [egulu protection-policies](index.md)

# egulu protection-policies assign

POST /v1/projects/{project}/locations/{location}/protectionPolicies/{policy}:assign

```sh
egulu protection-policies assign [options]
```

## API operation

[ProtectionPolicies_assign](../../api/backupcenter/ProtectionPolicies_assign.md): `POST /v1/projects/{project}/locations/{location}/protectionPolicies/{policy}:assign` (backupcenter module)

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--location` | value | yes | location |
| `--policy` | value | yes | policy |
| `--project` | value | yes | project |
| `--resources` | value | no | resources: comma-separated, or @file with one item a line |

The [global options](../index.md) apply too.
