HOST EUROPE CLOUD STORAGE REST API DEVELOPER REFERENCE



Similar documents
OpenStack Object Storage Developer Guide

reference: HTTP: The Definitive Guide by David Gourley and Brian Totty (O Reilly, 2002)

Nuance Mobile Developer Program. HTTP Services for Nuance Mobile Developer Program Clients

HTTP Protocol. Bartosz Walter

Release: August Gluster Filesystem Unified File and Object Storage Beta 2

The Application Layer. CS158a Chris Pollett May 9, 2007.

DARIAH Storage API A Basic Storage Service API on Bit Preservation Level

Qualys API Limits. July 10, Overview. API Control Settings. Implementation

Project #2. CSE 123b Communications Software. HTTP Messages. HTTP Basics. HTTP Request. HTTP Request. Spring Four parts

CloudOYE CDN USER MANUAL

What is Distributed Annotation System?

Internet Technologies. World Wide Web (WWW) Proxy Server Network Address Translator (NAT)

WP4: Cloud Hosting Chapter Object Storage Generic Enabler

Remote Access API 2.0

By Bardia, Patit, and Rozheh

Network Technologies

HireDesk API V1.0 Developer s Guide

HTTP REST API for OpenStack Object Storage Metadata Search (OSMS)

Designing RESTful Web Applications

Internet Technologies Internet Protocols and Services

Sentinel EMS v7.1 Web Services Guide

Contents. 2 Alfresco API Version 1.0

Cloud Servers Developer Guide

MXSAVE XMLRPC Web Service Guide. Last Revision: 6/14/2012

Force.com REST API Developer's Guide

HTTP. Internet Engineering. Fall Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

Layer 7 Load Balancing and Content Customization

The Web: some jargon. User agent for Web is called a browser: Web page: Most Web pages consist of: Server for Web is called Web server:

Outline Definition of Webserver HTTP Static is no fun Software SSL. Webserver. in a nutshell. Sebastian Hollizeck. June, the 4 th 2013

The Hyper-Text Transfer Protocol (HTTP)

Cache Configuration Reference

MONETA.Assistant API Reference

Commerce Services Documentation

HTTP - METHODS. Same as GET, but transfers the status line and header section only.

World Wide Web. Before WWW

vcloud Air Platform Programmer's Guide

CGI An Example. CGI Model (Pieces)

Web. Services. Web Technologies. Today. Web. Technologies. Internet WWW. Protocols TCP/IP HTTP. Apache. Next Time. Lecture # Apache.

Chapter 27 Hypertext Transfer Protocol

Hypertext for Hyper Techs

Message Containers and API Framework

Perceptive Integration Server

WWW. World Wide Web Aka The Internet. dr. C. P. J. Koymans. Informatics Institute Universiteit van Amsterdam. November 30, 2007

This Specification is provided for future development work within onem2m only. The Partners accept no liability for any use of this Specification.

ivvy Events Software API

JASPERREPORTS SERVER WEB SERVICES GUIDE

CONTRACT MODEL IPONZ DESIGN SERVICE VERSION 2. Author: Foster Moore Date: 20 September 2011 Document Version: 1.7

, SNMP, Securing the Web: SSL

Secure XML API Integration Guide - Periodic and Triggered add in

Application layer Web 2.0

CONTENT of this CHAPTER

Developer Guide: REST API Applications. SAP Mobile Platform 2.3

Axway API Gateway. Version 7.4.1

Secure XML API Integration Guide. (with FraudGuard add in)

STORAGE S3 API. Storage S3 API. Programmer s Guide. Revision 1.0 (20/04/2012) Lunacloud Tel: Southampton Row info@lunacloud.

Introduction to ServerIron ADX Application Switching and Load Balancing. Module 6: Content Switching (CSW) Revision 0310

InternetVista Web scenario documentation

Protocolo HTTP. Web and HTTP. HTTP overview. HTTP overview

Design Notes for an Efficient Password-Authenticated Key Exchange Implementation Using Human-Memorable Passwords

Riverbed Cascade Shark Common REST API v1.0

Developer Guide: REST API Applications. SAP Mobile Platform 2.3 SP03

COMMERCIAL-IN-CONFIDENCE

Qlik REST Connector Installation and User Guide

GetLibraryUserOrderList

Traitware Authentication Service Integration Document

Symantec Protection Engine for Cloud Services Software Developer's Guide

Description of Microsoft Internet Information Services (IIS) 5.0 and

Symantec Scan Engine Software Developer's Guide

VMware vcenter Log Insight Developer's Guide

1 Introduction: Network Applications

Messaging API. API Specification Document Messaging API. Functionality: Send SMS Messages.

Introduction...3 Terms in this Document...3 Conditions for Secure Operation...3 Requirements...3 Key Generation Requirements...

Easy CramBible Lab DEMO ONLY VERSION Test284,IBM WbS.DataPower SOA Appliances, Firmware V3.6.0

The HTTP Plug-in. Table of contents

THE CHALLENGE OF ADMINISTERING WEBSITES OR APPLICATIONS THAT REQUIRE 24/7 ACCESSIBILITY

HTTP 1.1 Web Server and Client

Asset Management and Tagging API v1. User Guide Version 2.3

Deep-Secure Mail Guard Feature Guide

CS640: Introduction to Computer Networks. Applications FTP: The File Transfer Protocol

The Web History (I) The Web History (II)

UpCloud API Documentation. API version Updated Aug 13, 2013

My IC Customizer: Descriptors of Skins and Webapps for third party User Guide

API Documentation. Introduction. General request structure. Authentication. Account and Site Identifiers. Name Description Optional

No. Time Source Destination Protocol Info HTTP GET /ethereal-labs/http-ethereal-file1.html HTTP/1.

An Oracle White Paper June RESTful Web Services for the Oracle Database Cloud - Multitenant Edition

NAB TRANSACT. XML API Integration Guide

IETF 84 SCIM System for Cross-domain Identity Management. Kelly Grizzle

CTIS 256 Web Technologies II. Week # 1 Serkan GENÇ

KMx Enterprise: Integration Overview for Member Account Synchronization and Single Signon

EUR-Lex 2012 Data Extraction using Web Services

SOAP WSDL & HTTP MIME REST Web Services Companion Guide HIPAA Operating Rules (HOpR) CORE Phase II

Job Reference Guide. SLAMD Distributed Load Generation Engine. Version 1.8.2

Resco CRM Server Guide. How to integrate Resco CRM with other back-end systems using web services

Transcription:

HOST EUROPE CLOUD STORAGE REST API DEVELOPER REFERENCE

REST API REFERENCE REST OVERVIEW Host Europe REST Storage Service uses HTTP protocol as defned by RFC 2616. REST operations consist in sending HTTP request to Host Europe REST Storage Service, which will return HTTP responses. REST HTTP Request contain a request method, a URI, headers and a query string and body. The responses contain status codes, headers, and may contain a response body. REST requests include headers which contain the following information: Content-Length Message Length (without headers), as specifed by RFC 2616. This header of type string is required for PUT and operations that load XML, such as logging and ACLs. Content-Type Content Type of the resource (e.g. text/plain). Date Date and Time of the request (default format is Mon, 06 Apr 2009 13:00:00 GMT which conforms to RFC 2616 Section 3.3.1. ). Host The Host should display the standard Storage Service. If the host contains anything else than the standard BRS2 Storage Server, this information will be used as a bucket for the request, as explained in Virtual Hosting of Buckets. This header is required for HTTP1.1. Contains either: Service Hostname Virtual Host (bucket.cs.hosteurope.de) Bucket. Authorization Contains the information required for authentication. Please refer to Authenticating REST Requests for more information on authorization formats. x-amz parts Divided into 2 types: x-amz- : contain system metadata. x-amz-meta-: contain user defned metadata. 02.02.2011 V1 sb 2

SERVICE OPERATIONEN GET Service The GET operation on a service returns a list of all the buckets owned by the authenticated sender of the request. You must authenticate with a valid Access Key ID. Anonymous requests cannot list buckets. GET / HTTP/1.1 Host: cs.hosteurope.de Date: Mon, 10 Aug 2009 15:55:19 GMT Content-length: 317 <?xml version="1.0" encoding="utf-8"?> <ListAllMyBucketsResult xmlns="http://cs.hosteurope.de/doc/2006-03-01/"> <Owner> <ID>14B5C45B8E359BC1601B7C682D83EB50648AE420</ID> <DisplayName>Test </DisplayName> </Owner> <Buckets> <Bucket> <Name>polo</Name> <CreationDate>2009-07-30T16:31:04.000Z</CreationDate> </Bucket> </Buckets> </ListAllMyBucketsResult> In this sample syntax, the Owner feld lists information about the bucket owner. The Buckets feld lists buckets and their metadata. 02.02.2011 V1 sb 3

BUCKET OPERATIONS PUT Bucket Using PUT operation on a bucket has a diferent efect than the PUT operation on objects. If the bucket does not exist, the PUT operation will create the Bucket. Each user may create up to 100 buckets. PUT / HTTP/1.1 Host: polo2.cs.hosteurope.de Content-Length: 0 Date: Mon, 10 Aug 2009 15:59:05 GMT GET Bucket Using GET operation on a bucket has a diferent efect than the GET operation on objects. The GET operation on a bucket lists the content of the whole Bucket. GET Bucket Parameters It is possible to pass on several arguments to the GET Bucket request, using URL scheme like? prefx=prefx;marker=marker;etc. prefx This argument of type string limits the response to keys that begin with the specifed prefx. You may use prefxes to separate a bucket into diferent sets of keys. marker This argument of type string indicates the listing start point of the bucket. The list will include only the keys that occur after the specifed marker. For pagination purposes, it is possible to get the next page of results using the last key of the current page as a marker for instance. max-keys This Integer argument determines the maximum number of results the body response should contain. delimiter This string argument causes keys that contain the same string between the prefx and the frst occurrence of the delimiter to be rolled up into a single result element in the CommonPrefxes collection. 02.02.2011 V1 sb 4

GET / HTTP/1.1 Date: Mon, 10 Aug 2009 15:55:53 GMT Content-length: 853 <?xml version="1.0" encoding="utf-8"?> <ListBucketResult xmlns="http://cs.hosteurope.de/doc/2006-03-01/"> <Name>polo</Name> <Prefix></Prefix> <Marker></Marker> <MaxKeys>1000</MaxKeys> <IsTruncated>false</IsTruncated> <Contents> <Key>chunk</Key> <LastModified>2009-08-06T09:11:58.000Z</LastModified> <ETag>"f436d2e0ed02b7b73bd10c6693e95ac3"</ETag> <Size>18274</Size> <Owner> <ID>14B5C45B8E359BC1601B7C682D83EB50648AE420</ID> <DisplayName>Test</DisplayName> </Owner> <StorageClass>STANDARD</StorageClass> </Contents> <Contents> <Key>ls</Key> <LastModified>2009-08-04T16:28:04.000Z</LastModified> <ETag>"f58860f27dd2673111083770c9445099"</ETag> <Size>92376</Size> <Owner> <ID>14B5C45B8E359BC1601B7C682D83EB50648AE420</ID> <DisplayName>Test</DisplayName> </Owner> <StorageClass>STANDARD</StorageClass> </Contents> </ListBucketResult> In the example response above, we can see: The <name> tag contains the bucket name. The two <Contents> tags contain 2 object descriptions, each defned by the <Key> tag. The <Owner> tag contain information about the owner of the object. 02.02.2011 V1 sb 5

DELETE Bucket Using DELETE operation on a bucket has a diferent efect than the DELETE operation on objects. The DELETE operation on a bucket deletes it if the bucket is empty. DELETE / HTTP/1.1 Host: polo2.cs.hosteurope.dedomain.com HTTP/1.1 204 No Content Date: Mon, 10 Aug 2009 15:59:43 GMT OBJECT OPERATIONS PUT Object The PUT request operation adds an object to a bucket. The response returned indicates if the object has been stored successfully. The user must have WRITE access to the bucket to add an object. PUT Object Parameters Content-Type Set a standard MIME type for the content format. Default is binary/octet-stream. Content-Length Size of the object in bytes. Content-MD5 The base64 encoded 128-bit MD5 digest of the message (without the headers). x-amz-acl The canned ACP to apply to the object. Options include private, public-read, public-read-write, and authenticated-read. x-amz-meta Any header starting with the meta prefx is considered meta-data. For further information, please refer to the RFC 2616. 02.02.2011 V1 sb 6

PUT /newchunk HTTP/1.1 Content-Length: length Content-MD5: md5_digest Content-Type: type Expires: 1249919840 Date: Mon, 10 Aug 2009 15:57:07 GMT Etag: "956398ac99977fa25bceb979777ebab6" Content-Length: 0 COPY Object The COPY request operation copies an object from a bucket to another bucket. The response returned indicates if the object has been copied successfully. The user must have READ access to the Source Object, WRITE access to the destination bucket to copy an object. COPY Object Parameters x-amz-copy-source This argument contains the name of the source bucket and key of the source object, separated by a slash /. This string must be URL-encoded, and the source bucket name must be valid. x-amz-metadata-directive This argument takes two possible values: COPY: specifes that the metadata from the source object should be copied with the metadata provided in the request. REPLACE: specifes that the metadata from the source object should be replaced with the metadata provided in the request. x-amz-copy-source-if-match This argument will make the request copy the object if its entity tag (Etag) matches the specifed value. x-amz-copy-source-if-none-match This argument will make the request copy the object if its entity tag (Etag) is other than the specifed value. x-amz-copy-source-if-unmodifed-since This argument will make the request copy the object if it has not been modifed since the specifed time. The value for this argument must be a valid HTTP date. See RFC 2616. for more information. 02.02.2011 V1 sb 7

x-amz-copy-source-if-modifed-since This argument will make the request copy the object if it has been modifed since the specifed time. The value for this argument must be a valid HTTP date. See RFC 2616. for more information. COPY /newchunk HTTP/1.1 x-amz-copy-source: /polo/chunk Content-Length: length Content-Type: type Expires: 1249919840 Date: Mon, 10 Aug 2009 16:02:21 GMT Etag: "f436d2e0ed02b7b73bd10c6693e95ac3" Content-Length: 189 <?xml version="1.0" encoding="utf-8"?> <CopyObjectResult> <LastModified>2009-08-10T16:02:22.000Z</LastModified> <Etag>"f436d2e0ed02b7b73bd10c6693e95ac3"</ETag> </CopyObjectResult> GET Object The GET request operation fetches objects from Host Europe REST Storage Service. GET Object Parameters If-Modifed-Since This argument will make the request return the object only if it has been modifed since the specifed time. The value for this argument must be a valid HTTP date. See RFC 2616. for more information. If-Unmodifed-Since This argument will make the request return the object only if it has not been modifed since the specifed time. The value for this argument must be a valid HTTP date. See RFC 2616. for more information. If-Match This argument will make the request return the object only if its entity tag (Etag) is identical to the specifed value. If-None-Match This argument will make the request return the object only if its entity tag (Etag) is diferent from the specifed value. 02.02.2011 V1 sb 8

GET /Chunk HTTP/1.1 Date: Mon, 10 Aug 2009 16:00:57 GMT Last-modified: Thu, 06 Aug 2009 09:11:58 GMT Etag: "f436d2e0ed02b7b73bd10c6693e95ac3" Content-length: 18274 Data goes here... HEAD Object The HEAD request operation returns metadata information on an object. The user must have READ / WRITE access to the buckets to add an object. HEAD Object Parameters Etag This option returns the Etag of the Object. HEAD /Chunk HTTP/1.1 Date: Mon, 10 Aug 2009 16:04:02 GMT Content-length: 553 02.02.2011 V1 sb 9

DELETE Object The DELETE action removes the given object from Host Europe REST Storage Service. The user must have WRITE access to the bucket to delete an object. Warning - It is not possible to restore a deleted object. DELETE /Chunk HTTP/1.1 You can use standard request headers for this action. HTTP/1.1 204 No Content Date: Mon, 10 Aug 2009 15:57:43 GMT 02.02.2011 V1 sb 10