Dell DX6004S DX Object Storage Application Guide - Page 39

Scsp Update

Page 39 highlights

Chapter 8. SCSP UPDATE The following topics in this chapter discuss details about SCSP UPDATE: • Section 8.1, "Introduction to UPDATE" • Section 8.2, "Unnamed Object UPDATE Details" 8.1. Introduction to UPDATE This section discusses general information about SCSP UPDATE that applies to both named and unnamed objects. UPDATE is a request for a specific named object or unnamed anchor stream object to be modified with a new stream target. The UPDATE request is formatted as a simple HTTP request using the PUT method as shown in the following examples: • Named object PUT /bucket/file.txt HTTP/1.1 Host: cluster.example.com User-Agent: DX Storage Client/0.1 Content-Length: 43402 Expect: 100-continue Content-Type: image/jpeg Content-Language: en/us, x-pig-latin Content-Version: 42 Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT Created-Date: Wed, 1 Sept 2010 15:59:02 GMT CRLF [ content-stream ] • Unnamed object PUT /06eec5e2c3f1aadcb41ef7fd52adc049 HTTP/1.1 Host: cluster.example.com User-Agent: DX Storage Client/0.1 Content-Length: 43402 Expect: 100-continue Content-Type: image/jpeg Content-Language: en/us, x-pig-latin Content-Version: 42 Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT Created-Date: Wed, 1 Sept 2010 15:59:02 GMT CRLF [ content-stream ] PUT returns a 404 (Not Found) error if the object name or UUID you specify in the command does not exist. 8.2. Unnamed Object UPDATE Details If UPDATE succeeds on an unnamed anchor stream object, the content sent in the body of the request will be written as a new stream, the anchor stream specified in the first line of the HTTP PUT will be updated to point to the new stream, and the original UUID of the stream is returned to the client. The UPDATE request is formatted as a simple HTTP request using the PUT method as Copyright © 2010 Caringo, Inc. All rights reserved 34 Version 5.0 December 2010

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

Copyright © 2010 Caringo, Inc.
All rights reserved
34
Version 5.0
December 2010
Chapter 8. SCSP UPDATE
The following topics in this chapter discuss details about SCSP UPDATE:
Section 8.1, “Introduction to UPDATE”
Section 8.2, “Unnamed Object UPDATE Details”
8.1. Introduction to UPDATE
This section discusses general information about SCSP UPDATE that applies to both named and
unnamed objects.
UPDATE is a request for a specific named object or unnamed anchor stream object to be modified
with a new stream target. The UPDATE request is formatted as a simple HTTP request using the
PUT method as shown in the following examples:
Named object
PUT /bucket/file.txt HTTP/1.1
Host: cluster.example.com
User-Agent: DX Storage Client/0.1
Content-Length: 43402 Expect: 100-continue
Content-Type: image/jpeg
Content-Language: en/us, x-pig-latin
Content-Version: 42
Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT
Created-Date: Wed, 1 Sept 2010 15:59:02 GMT
CRLF
[ content-stream ]
Unnamed object
PUT /06eec5e2c3f1aadcb41ef7fd52adc049 HTTP/1.1
Host: cluster.example.com
User-Agent: DX Storage Client/0.1
Content-Length: 43402 Expect: 100-continue
Content-Type: image/jpeg
Content-Language: en/us, x-pig-latin
Content-Version: 42
Last-Modified: Wed, 1 Sept 2010 15:59:02 GMT
Created-Date: Wed, 1 Sept 2010 15:59:02 GMT
CRLF
[ content-stream ]
PUT returns a 404 (Not Found) error if the object name or UUID you specify in the command does
not exist.
8.2. Unnamed Object UPDATE Details
If UPDATE succeeds on an unnamed anchor stream object, the content sent in the body of the
request will be written as a new stream, the anchor stream specified in the first line of the HTTP
PUT will be updated to point to the new stream, and the original UUID of the stream is returned to
the client. The UPDATE request is formatted as a simple HTTP request using the PUT method as