API Documentation
|
GET
- retrieves information about the active version of a file object/Secure Object using the SHA-512 value of its encrypted data.This API endpoint retrieves information about the active version of a file object using the SHA-512 hash value of its encrypted data (i.e. matching the SHA-512 value recorded in the file object upon its completion).
Notes:
- This API endpoint is only available if the Cocoon Data user (whose access token is submitted in the request to this endpoint) has access to this file object (as either the owner of or a collaborator on this file).
- The SHA-512 value specified in the request must match that of SHA-512 value recorded in the file object (upon the file object's completion), because for every time a given piece of data is encrypted (i.e. using AES), the SHA-512 of the encrypted data will be different.
This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:
The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria above is determined by the access token submitted in the header of requests to this endpoint.
The appropriate access token as the Bearer
token:
Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
The following required parameter must be sent in the URL of the GET request:
If the request succeeded, then an HTTP response status 200 OK
is returned.
For successful requests only, a JSON-formatted response containing the following members is also returned:
null
if the shareStartTime was never specified when the file object was initialized or created, or last updated. null
if the shareEndTime was never specified when the file object was initialized or created, or last updated. null
if the name was never specified. server.useraccounttype.
This I18N code could include the substring local
, ldap
or external
. true
after it sets the value of canGenerateView (below) to true
and the Content Service has successfully generated and stored a read-only view of the file object's data. true
after the file object's data has been successfully uploaded and stored and the size of this data is less than the maximum configured file size for generating a view (i.e. 20 MB by default). null
if the mimeType was never specified on this file object. 0
indicates that this file object is located at the logical root location. incomplete
for an initialized file object, created
for a completed file or deleted
for a deleted file. createdAt
value below. Otherwise, if the file object has since been modified, this date and time should reflect when the file object was last modified. null
, then no classification was specified (i.e. the labelId parameter was specified with an empty string or this parameter was omitted) when the file object was initialized or created, or last updated. This means that no classification restrictions (i.e. checks on Cocoon Data users' group membership and the association of these groups with individual classifications - see User group endpoints for more information) have been placed on collaborators added to this file object. object
, which in turn indicates that information about item returned from this request is about a file object. null
, then no classification was specified (i.e. the labelId parameter was specified with an empty string or this parameter was omitted) when the file object was initialized or created, or last updated. null
or 0
. A value of null
indicates that the file object's location in its hierarchy of folders (e.g. as indicated in a SafeShare application's list of items) are equivalent between this collaborator (i.e. another Cocoon Data user account) and the current owner of this file object. A value of 0
indicates that the file object is being shared from the logical root file area/location of this collaborator's account. In SafeShare applications, this occurs when the owner of this file object has shared the file object with this collaborator, but the file object's parent folder has not also been shared with this collaborator. null
.