Dell Technologies ECS REST API

Search (SHIFT+S)




Create Name Space Object

POST /rest/namespace/path

Create object using the namespace interface.

URL Format

/rest/namespace/path

Request Headers

"Content-Length" required
"x-emc-date" required
"x-emc-uid" required
"x-emc-signature" required
"x-emc-utf8" requiredOnly required if metadata values are in Unicode.
"x-emc-wschecksum" requiredRequired if the application must conform to SEC 17a-4f standards.
"x-emc-listable-meta" optionalor "x-emc-meta"
"x-emc-groupacl" optionalor "x-emc-useracl"

Prerequisites

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

  • User must be a Namespace Admin


Request Payload

No Request Payload


Response Body


Examples

Request
> POST /rest/namespace/bucket/file.txt HTTP/1.1
> Host: 192.168.0.0:9022
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type:text/plain
> x-emc-date:Mon, 27 Feb 2017 22:35:59 GMT
> x-emc-uid:b078f1e44dbc424dbe93fc000c527d5a/atmos_usr
> x-emc-signature:AyAVaSSW6n17WDXxItJMCfaR8Mo=
> Content-Length: 9
>
* upload completely sent off: 9 out of 9 bytes
Response
< HTTP/1.1 201 Created
< Date: Mon, 27 Feb 2017 22:36:00 GMT
< x-emc-policy: default
< x-emc-request-id: 0af9f566:15a43dc3b15:3217e:0
< x-emc-delta: 9
< Location: /rest/objects/4540932f3428d814ae59e83d64b1d68db06569205621e77cd93a661c5843ae8c-f8ca6177-3d32-4692-91f6-60d902745d3d
< x-emc-mtime: 1488234959907
< Content-Length: 0
< Server: ViPR/1.0