IPWorks Cloud 2020 Node.js Edition

Questions / Feedback?

GetCompliance Method

Gets the compliance settings for the current bucket or an object in it.

Syntax

wasabi.getCompliance(objectName, [callback])

Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for this method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

Calling this method and passing the empty string for ObjectName will cause BucketCompliance to be populated for the current bucket. Otherwise, this method will cause ObjectCompliance to be populated for the object with the given ObjectName (as long as such an object exists in the current bucket, and the bucket's compliance settings are enabled).

Refer to the UpdateCompliance documentation for more information about compliance.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Node.js Edition - Version 20.0 [Build 8265]