The request line for an HSwift request specifies the operation to be performed, whether the target of the operation is an account, container, or object, and the version of HTTP on which the HSwift API is based.
In an HSwift request that uses Keystone authentication, the account name is interchangeable with the Keystone tenant authentication token.
For example, here are the Keystone tenant authentication token and account name request lines for a request to create a container named finance:
PUT /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance HTTP/1.1
PUT /swift/v1/europe/finance HTTP/1.1
If the target of the request is a container, the request line includes a forward slash followed by the container name.
If the target of the operation is an object, the request line includes a forward slash followed by the object name following the container name.
For example, here are the Keystone tenant authentication token and account name request lines for a request to create an object named Q4_2012:
PUT /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/Q4_2012.ppt HTTP/1.1
PUT /swift/v1/europe/finance/Q4_2012.ppt HTTP/1.1
If the request uses headers such as the X-Container-Write header it is shown under the request.
For example, here are the Keystone tenant authentication token and account name request lines and X-Write-Container headers for a request to create a container named finance and add an ACL to the container:
PUT /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e/finance/Q4_2012.ppt/ HTTP/1.1
"X-Container-Write: *"
PUT /swift/v1/europe/finance/Q4_2012.ppt/ HTTP/1.1
"X-Container-Write: *"
If the request uses any query parameters, those parameters are appended to the last one of the items listed above.
For example, here are the Keystone tenant authentication token and account name request lines for a request to list all containers in between the letters E and S:
GET /swift/v1/AUTH_6b6884ebb6f441cfbb7e740f6a927c9e?marker=e&end_marker=s/ HTTP/1.1
GET /swift/v1/europe?marker=e&end_marker=s/ HTTP/1.1
If the request includes invalid query parameters, those parameters are ignored.
© 2016 Hitachi Data Systems Corporation. All rights reserved.