Skip to main content

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​

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.