Gets the retention period for the given namespace and retention class.
namespace | Namespace for which retention period needs to retrieved |
class | Class name for which retention period needs to retrieved |
Requires one of the following roles:
SYSTEM_ADMIN
SYSTEM_MONITOR
NAMESPACE_ADMIN
The following conditions must be met in order to call this operation.
Namespace must exist
Retention period for the given namespace and retention class
Field | Description | Type | Notes |
retention_class | |||
name | Name of the retention class | String | |
period | Period of the retention class in seconds | Long |
GET https://192.168.0.0:4443/object/namespaces/namespace/s3/retention/class_9cc8777c-bce0-11e4-8580-0050569c6fd7 HTTP/1.1 Content-Type: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
HTTP/1.1 200 OK Content-Type: application/xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <retention_class> <name>class_9cc8777c-bce0-11e4-8580-0050569c6fd7</name> <period>2</period> </retention_class>