Application Programming Interface Guide > Web Services Operations > Operations Reference > lockResource
 
lockResource
Lock the specified resource.
Location
/services/webservices/system/admin/resource/operations/
Request Elements
path: The path of the resource to lock.
type: The type of the resource specified by the given path. Valid values are CONTAINER, DATA_SOURCE, DEFINITION_SET, LINK, PROCEDURE, TABLE, TREE, or TRIGGER.
detail: The level of detail about the resources to include in the response. Valid values are NONE, SIMPLE, and FULL.
Response Elements
resources: List of the locked resources. See Resources Element.
Faults
IllegalArgument: If the path is malformed or the type or detail is illegal.
NotFound: If the resource or any portion of the path to the resource does not exist.
Security: If the user does not have READ access on all items in path, except the last one.
Security: If the user does not have WRITE access to the last item in path and does not have the MODIFY_ALL_RESOURCES right.
Security: If the user does not have the ACCESS_TOOLS right.