f641577d8a
Add CRUD APIs for resource locks with support for preventing deletion of shares (applies to soft-deletions and unmanage operations as well). Change-Id: I146bc09e4e8a39797e22458ff6860346e11e592e Implements: bp/allow-locking-shares-against-deletion Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
25 lines
769 B
JSON
25 lines
769 B
JSON
{
|
|
"resource_lock": {
|
|
"id": "713dc92d-bf5e-4b04-875b-2b2d284d8f94",
|
|
"user_id": "89de351d3b5744b9853ec4829aa0e714",
|
|
"project_id": "db2e72fef7864bbbbf210f22da7f1158",
|
|
"lock_context": "user",
|
|
"resource_type": "share",
|
|
"resource_id": "5a313549-d346-44b6-9650-738ce08a9fee",
|
|
"resource_action": "delete",
|
|
"lock_reason": "Locked for deletion until year end audit.",
|
|
"created_at": "2023-07-17T22:11:48.144302",
|
|
"updated_at": null,
|
|
"links": [
|
|
{
|
|
"rel": "self",
|
|
"href": "http://203.0.113.30/share/v2/resource_locks/713dc92d-bf5e-4b04-875b-2b2d284d8f94"
|
|
},
|
|
{
|
|
"rel": "bookmark",
|
|
"href": "http://203.0.113.30/share/resource_locks/713dc92d-bf5e-4b04-875b-2b2d284d8f94"
|
|
}
|
|
]
|
|
}
|
|
}
|