Add a resource group to a protection policy
PUT/api/v1/ProtectionPolicy/:protectionPolicyId/ManagedResourceGroup
Adds a resource group to a protection policy and reschedules protection. To see the result, read the policy again afterward.
Permission required: Administrators and application accounts.
Caution: The response is the full policy record and can include details of the resources in the policy, so handle it with care.
Request
Responses
- 202
- 400
- 401
- 403
- 404
The resource group was added. The body is the full policy record as it was read before the change, so it does not yet list the added group, and it has a different shape from the policy returned by the other policy routes.
No resource group exists with this identifier.
The request is not signed in, or the sign-in has expired.
The caller is not an administrator or application account.
No protection policy exists with this identifier.