Creates a retention class for the specified namespace. The method payload specifies the retention class details which define a name for the class and a retention period.
namespace | Namespace identifier for which retention class needs to created. |
Requires one of the following roles:
SYSTEM_ADMIN
NAMESPACE_ADMIN
The following conditions must be met in order to call this operation.
Namespace must exist
All parameters are required unless otherwise stated.
Field | Description | Type | Notes |
retention_class_create | |||
name | Name of the retention class | String | |
period | Period of the retention class in seconds | Long |
Response indicating Success or Failure to create retention class
POST https://192.168.0.0:4443/object/namespaces/namespace/s3/retention HTTP/1.1 Content-Type: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN> <retention_class_create> <name>retcls3</name> <period>4</period> </retention_class_create>
HTTP/1.1 200 OK Content-Type: application/xml