Skip to main content

Rotate built-in admin accounts in a resource group

POST 

/api/v1/ManagedResourceGroup/:managedResourceGroupId/RotateAccounts

Schedules a password rotation for the built-in administrator accounts of managed resources and returns how many rotations were scheduled. Send all set to true to rotate every managed resource in the group (for a platform group, every managed resource on that platform), or list resource IDs in ids. Resources whose account cannot be rotated are skipped.

Permission required: Requires the Admin role, or an application account with the App role.

Caution: Rotation changes real account passwords on the selected resources, so confirm the selection before you call it.

Request​

Responses​

The number of rotations scheduled, as a plain integer. Resources that could not be scheduled are skipped and are not listed in this response.