Manage Srm Permissions
Adds or modifies a permission rule from a given Site Recovery Manager object.
The ID of a pairing between this Site Recovery Manager server and remote one.
ID of a Site Recovery Manager server.
Entity on which a permission is added or modified. If not provided, the permission is added or modified on the Site Recovery Manager server.
Spec describing the user or group for which the permission is added or modified.
Show optional properties
{
"principal": "string",
"role_name": "string"
}
{
"principal": "string",
"role_name": "string",
"propagate": false,
"group": false
}
User or group receiving access in the form of "login".
The label for the role in a string format.
Defines whether the role is propagated to the children of the entity.
Whether principal refers to a user or a group. True for a group and false for a user.
The permission was successfully modified.
Bad request - the server cannot understand the request due to invalid syntax or invalid request body content
"ResponseError Object"
The code of the error.
The message of the error.
The ID of the operation.
Unauthorized - the client must authenticate itself to get the requested response
Forbidden - not sufficient access rights to fulfill the request
"ResponseError Object"
The code of the error.
The message of the error.
The ID of the operation.
Not Found - server cannot find the requested in URL resource
Internal server error - unexpected condition prevents fulfilling the request
"ResponseError Object"
The code of the error.
The message of the error.
The ID of the operation.
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"principal:"string","role_name:"string"}' https://{api_host}/pairings/{pairing_id}/srms/{srm_id}/permissions