EMC ECS REST API

Search (SHIFT+S)




Change File Access

PUT /v1/{account}/{container}?accessmode

Initiates the process to change the container's access mode

URL Format

v1/{account}/{container}?accessmode

Request Headers

x-emc-file-access-mode requiredaccess mode to switch to. Transition to ReadOnly from ReadWrite and to ReadWrite from ReadOnly are not supported. Valid values: Disabled, ReadOnly, ReadWrite
x-emc-file-access-duration optionalin seconds for which the access mode should be enforced.
x-emc-file-access-host-list requiredlist of hosts or subnets which are allowed to mount the file system
x-emc-file-access-uid requiredID specified by the client while accessing the objects belonging to the resource (bucket) whose access mode is being changed
x-emc-file-access-token optionalto identify the objects that are to be granted file access. The ViPR system provides this token to the client in response to the Access Mode PUT operation. When the user included this token in the future PUT requests the ViPR system can identify the objects that were and were not present when this token was generated. Default: NULL (applies the access mode change to all the objects in the bucket)

Prerequisites

The following conditions must be met in order to call this operation.

  • container and account corresponding to this container should exist


Request Payload

No Request Payload


Response Headers

x-emc-file-access-mode alwaysthe access mode the ViPR system is currently enforcing on the objects in the bucket
x-emc-file-access-duration alwaysthe time after which the file access mode will fall back to being default unless it is renewed with another PUT request.
x-emc-file-access-host-list alwayslist of hosts or subnets which will be allowed to mount the file system
x-emc-file-access-uid alwaysID that will have access to the objects
x-emc-file-access-token alwaysbe saved and used by the client in future requests to identify the objects that will be affected by the current operation.

Response Body

The response does not have a body on success.