The compose operation creates a new object whose contents are the concatenation of a given sequence of up to 32 source objects. The source objects must all reside in the same bucket and use the same storage class. The source objects are unaffected by the compose operation, and the resulting composite object does not change if its source objects are replaced or deleted.
Composite objects may be built from source objects that are themselves composite objects.
For more information, see Composite Objects.
Query string parameters
||Issues a compose request. Requires a ComposeRequest XML document in the request body.||No|
In addition to common request headers, the following can be used.
||The compression algorithm that was used to compress the composite object.||No|
||A header that specifies presentational information about how the object data is to be transmitted.||No|
||The predefined ACL that you want to apply to the composite object.||No|
||A user-specified date and time.||No|
||The customer-managed encryption key to use to encrypt the composed object.||No|
||An extension header that can be used to store custom metadata.||No|
To compose objects encrypted by a customer-supplied encryption key, use the headers listed on the Encryption page in your request.
Request body elements
The following request body elements are applicable only if you use the
compose query string parameter to issue a
||Container for a compose request.|
||Container for a compose request component argument.|
||Object name for a compose request component.|
||Generation number for a compose request component.|
||Expected current generation number for a compose request component. The request will fail if the component object has a different generation.|
PUT /OBJECT_NAME?compose HTTP/1.1 Host: BUCKET_NAME.storage.googleapis.com Date: DATE Content-Length: REQUEST_BODY_LENGTH Authorization: AUTHENTICATION_STRING <ComposeRequest> <Component> <Name>component-obj-1</Name> </Component> <Component> <Name>component-obj-2</Name> <Generation>1361471441094000</Generation> </Component> <Component> <Name>component-obj-3</Name> <IfGenerationMatch>1361471441094000</IfGenerationMatch> </Component> </ComposeRequest>
The request can return a variety of response headers depending on the request headers you use.
Response body elements
The response does not include an XML document in the response body.