Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleAudit Log REST Methods

Get Audit Log

  • Purpose: Returns the latest audit for a given store and space
  • Request: GET https://host:port/durastore/audit/{storeId}/{spaceId}spaceId}?[storeID={storeID}]
  • Optional parameter 'storeID': if not set, primary store storage provider is used.
  • Response Code: 200 (on success), 404 if audit logs were not found.
  • Response Body: TSV in chronological order with the following fields.

    Code Block
    xml
    xml
    ACCOUNT	STORE_ID	SPACE_ID	CONTENT_ID	CONTENT_MD5	CONTENT_SIZE	CONTENT_MIMETYPE	CONTENT_PROPERTIES	SPACE_ACLS	SOURCE_SPACE_ID	SOURCE_CONTENT_ID	TIMESTAMP	ACTION	USERNAME
    mysubdomain	51	myspace	image-01.jpg	b1978f9fc4fe9448e05b83bbe6b98109	81214	image/jpeg	{"content-mimetype" : "image/jpeg"}		{}		2014-09-10T15:54:42.042	ADD_CONTENT	root
Panel
titleManifest REST Methods

Get Manifest

  • Purpose: Returns the latest manifest for a given space and storeId
  • Request: GET https://host:port/durastore/manifest/{spaceId}?[storeID={storeID}&format={format}]
  • Optional parameter 'storeID': if not set, primary store storage provider is used.
  • Optional parameter 'format': TSV or BAGIT. TSV is default.
  • Response Code: 200 (on success), 404 if manifest was empty found.

  • Response Body: TSV in chronological order with the following fields.

    Code Block
    titleTSV results
    space-id	content-id	MD5
    auditlogs	localhost/51/auditlogs/localhost_51_auditlogs-2014-09-10-15-56-07.tsv	6992f8e57dafb17335f766aa2acf5942
    auditlogs	localhost/51/photos/localhost_51_photos-2014-09-10-15-55-01.tsv	820e786633fb495db447dc5d5cf0b2bd
    
    

...