Create User
SOAP/WCF Method: CreateUser
REST URL: http://rest.diomedestorage.com/Service.svc/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/?username={username}&password={password}&email={email}
Parameters (applies to both SOAP & REST methods):
| username | string | Diomede account username. |
| password | string | Diomede account password. |
| email | string | The email address associated with your Diomede account and stored in your Diomede user information. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/?username=dct-0-fnwieig2&password=password123&email=dct-0-fnwieig2@diomedestorage.com"
Sample HTTP request:
POST /1.1/Service.svc/?username=dct-0-fnwieig2&password=password123&email=dct-0-fnwieig2@diomedestorage.com HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Location: http://rest.diomedestorage.com/1.1/Service.svc/dct-0-fnwieig2/?password=password123
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete User
SOAP/WCF Method: DeleteUser
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Change Password
SOAP/WCF Method: ChangePassword
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/password/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/password/?oldpassword={oldPassword}&newpassword={newPassword}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| oldPassword | string | The current Diomede account password. |
| newPassword | string | The new desired Diomede account password. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/password/?oldpassword=password123&newpassword=newpword123"
Sample HTTP request:
PUT /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/password/?oldpassword=password123&newpassword=newpword123 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Reset Password
SOAP/WCF Method: ResetPassword
REST URL: http://rest.diomedestorage.com/Service.svc/{username}/password
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{username}/password
Parameters (applies to both SOAP & REST methods):
| username | string | Diomede account username. |
HTTP Method: DELETE
Format: XML
Login
SOAP/WCF Method: Login
REST URL: http://rest.diomedestorage.com/Service.svc/{username}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{username}/?password={password}
Parameters (applies to both SOAP & REST methods):
| username | string | Diomede account username. |
| password | string | Diomede account password. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/dct-0-fnwieig2/?password=password123"
Sample HTTP request:
GET /1.1/Service.svc/dct-0-fnwieig2/?password=password123 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 131
<LoginResponse xmlns="http://data.diomedestorage.com">
<sessionToken>9e71e7e206ed43978564c101c41918c3</sessionToken>
</LoginResponse>
Logout
SOAP/WCF Method: Logout
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/da44a8fec0704d419aa40751bbc2d2a0"
Sample HTTP request:
DELETE /1.1/Service.svc/da44a8fec0704d419aa40751bbc2d2a0 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Create File
SOAP/WCF Method: CreateFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{filename}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{filename}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| filename | string | Filename as stored on Diomede. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Transfer.svc/9e71e7e206ed43978564c101c41918c3/lfile/MyFilename.dat"
Sample HTTP request:
GET /1.1/Transfer.svc/9e71e7e206ed43978564c101c41918c3/lfile/MyFilename.dat HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: application/xml; charset=utf-8
Location: http://rest.diomedestorage.com/1.1/Transfer.svc/9e71e7e206ed43978564c101c41918c3/lfile/?offset=0&page=1&fileid=2
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
<CreateFileResponse xmlns="http://data.diomedestorage.com">
<newFileID>2</newFileID>
</CreateFileResponse>
Upload
SOAP/WCF Method: Upload
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/upload
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/upload?fileid={fileID}&offset={offset}&length={bufferLength}&iscomplete={isComplete}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| offset | int64 | Starting index (from 0) for paged results. |
| bufferLength | int32 | The size of this buffer. |
| isComplete | bool | TRUE=ONLY complete files, FALSE=only NOT complete files, not specified=ALL files. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -F "file=@c:\2asfw5b0.curlgen.dat" "http://rest.diomedestorage.com/1.1/Transfer.svc/9e71e7e206ed43978564c101c41918c3/lfile/upload?fileid=1&offset=0&length=1024&iscomplete=True"
Sample HTTP request:
POST /1.1/Transfer.svc/9e71e7e206ed43978564c101c41918c3/lfile/upload?fileid=1&offset=0&length=1024&iscomplete=True HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 1236
Expect: 100-continue
Content-Type: multipart/form-data; boundary=----------------------------f755ac50926e
Sample HTTP response:
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Cache-Control: private
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get Download URL
SOAP/WCF Method: GetDownloadURL
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/url/{fileID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/url/{fileID}/?maxdownloads={maxDownloads}&errorredirect={errorRedirect}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| maxDownloads | int32 | Maximum number times this download token can be used. Not specified = unlimited. |
| errorRedirect | string | The URL to redirect to if the download token fails (max uses exceeded, expired, etc). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/url/1/?"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/url/1/? HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 176
<GetDownloadURLResponse xmlns="http://data.diomedestorage.com">
<url>http://dio314.diomedestorage.com/dl/51RHQVO77GZQV6ESNHF3/2asfw5b0.curlgen.dat</url>
</GetDownloadURLResponse>
Download
SOAP/WCF Method: Download
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/1"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: http://dio314.diomedestorage.com/dl/6NHBG5I68QJHUXRQKCGJ/2asfw5b0.curlgen.dat
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 194
<html>
<head>
<title>Object moved</title>
</head>
<body>
<h2>Object moved to <a href="http://dio314.diomedestorage.com/dl/6NHBG5I68QJHUXRQKCGJ/2asfw5b0.curlgen.dat">here</a>
.</h2>
</body>
</html>
Create O Auth Secret And Key
SOAP/WCF Method: CreateOAuthSecretAndKey
REST URL: http://rest.diomedestorage.com/Service.svc/oauth/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/oauth/?username={username}&password={password}
Parameters (applies to both SOAP & REST methods):
| username | string | Diomede account username. |
| password | string | Diomede account password. |
HTTP Method: POST
Format: XML
Get O Auth Secret And Key
SOAP/WCF Method: GetOAuthSecretAndKey
REST URL: http://rest.diomedestorage.com/Service.svc/oauth/{oauthID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/oauth/{oauthID}
Parameters (applies to both SOAP & REST methods):
| oauthID | int32 | A Diomede-created ID that is assigned to each Oauth key/secret pair created. |
HTTP Method: GET
Format: XML
Search Files
SOAP/WCF Method: SearchFiles
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/?fileid={fileID}&getpfs={getPhysicalFileInfoBool}&filename={filename}&hashmd5={hashMD5}&hashsha1={hashSHA1}&minsize={minSize}&maxsize={maxSize}&startdate={startDate}&enddate={endDate}&isdeleted={isDeleted}&iscomplete={isComplete}&metaname={metaName}&metavalue={metaValue}&offset={offset}&page={pageSize}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| getPhysicalFileInfoBool | bool | Specifies if physical file information should also be returned with the results. Retrieving this information slightly slows down queries, so only use when necessary. |
| filename | string | Filename as stored on Diomede. |
| hashMD5 | 32 char HEX string | MD5 hash. |
| hashSHA1 | 40 char HEX string | SHA1 hash. |
| minSize | int64 | Minimum file size in bytes. |
| maxSize | int64 | Maximum file size in bytes. |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| isDeleted | bool | TRUE=ONLY deleted files, FALSE=only NOT deleted files, not specified=ALL files. |
| isComplete | bool | TRUE=ONLY complete files, FALSE=only NOT complete files, not specified=ALL files. |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
| offset | int64 | Starting index (from 0) for paged results. |
| pageSize | int64 | Number of results to return (this page's size). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/?getpfs=true&offset=0&page=3"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/?getpfs=true&offset=0&page=3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 932
<LogicalSearchFilesResult xmlns="http://data.diomedestorage.com">
<logicalFiles xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<RestLogicalFile>
<fileID>1</fileID>
<fileName>2asfw5b0.curlgen.dat</fileName>
<hashMD5/>
<hashSHA1/>
<fileSize>1024</fileSize>
<createdDate>2010-01-31T00:50:33.64</createdDate>
<lastModifiedDate>2010-01-31T00:50:33.64</lastModifiedDate>
<lastAccessDate i:nil="true"/>
<isDeleted>false</isDeleted>
<power>0.02354541</power>
<isComplete>true</isComplete>
<replicationPolicyID>1</replicationPolicyID>
<physicalFiles>
<PhysicalFileInfo>
<physicalFileID>1</physicalFileID>
<storageTypeID>1</storageTypeID>
<power>0.02354534967</power>
<requestedDate>2010-01-31T00:50:33.703</requestedDate>
<createdDate>2010-01-31T00:50:33.703</createdDate>
<exercisedDate i:nil="true"/>
<expirationDate i:nil="true"/>
</PhysicalFileInfo>
</physicalFiles>
</RestLogicalFile>
</logicalFiles>
<totalResults>1</totalResults>
</LogicalSearchFilesResult>
Search Files Total
SOAP/WCF Method: SearchFilesTotal
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/totals/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/totals/?fileid={fileID}&filename={filename}&hashmd5={hashMD5}&hashsha1={hashSHA1}&minsize={minSize}&maxsize={maxSize}&startdate={startDate}&enddate={endDate}&iscomplete={isComplete}&metaname={metaName}&metavalue={metaValue}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| filename | string | Filename as stored on Diomede. |
| hashMD5 | 32 char HEX string | MD5 hash. |
| hashSHA1 | 40 char HEX string | SHA1 hash. |
| minSize | int64 | Minimum file size in bytes. |
| maxSize | int64 | Maximum file size in bytes. |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| isComplete | bool | TRUE=ONLY complete files, FALSE=only NOT complete files, not specified=ALL files. |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/totals/"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/lfile/totals/ HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 921
<SearchFilesTotalResponse xmlns="http://data.diomedestorage.com">
<fileTotals xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<createdDate>2010-01-31T00:50:38.163</createdDate>
<fileCount>1</fileCount>
<fileBytes>1024</fileBytes>
<deletedFileCount>0</deletedFileCount>
<deletedFileBytes>0</deletedFileBytes>
<downloadCount>0</downloadCount>
<downloadBytes>0</downloadBytes>
<uploadCount>1</uploadCount>
<uploadBytes>1024</uploadBytes>
<storageTypeTotals>
<StorageTypeTotal>
<storageTypeID>1</storageTypeID>
<fileCount>1</fileCount>
<fileBytes>1024</fileBytes>
<power>0.0235454099</power>
</StorageTypeTotal>
<StorageTypeTotal>
<storageTypeID>2</storageTypeID>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<power>0</power>
</StorageTypeTotal>
<StorageTypeTotal>
<storageTypeID>3</storageTypeID>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<power>0</power>
</StorageTypeTotal>
</storageTypeTotals>
</fileTotals>
</SearchFilesTotalResponse>
Delete File
SOAP/WCF Method: DeleteFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/lfile/1"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/lfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Rename Or Undelete File
SOAP/WCF Method: RenameOrUndeleteFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/lfile/{fileID}/?filename={filename}&isdeleted={isDeleted}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| filename | string | Filename as stored on Diomede. |
| isDeleted | bool | TRUE=ONLY deleted files, FALSE=only NOT deleted files, not specified=ALL files. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/lfile/1/?filename=NewNameForFid1.dat"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/lfile/1/?filename=NewNameForFid1.dat HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Replicate File
SOAP/WCF Method: ReplicateFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{fileID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{fileID}/?storagetypeid={storageTypeID}&expirationdate={expirationDate}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| storageTypeID | int32 | The desired storage type. Current storage type IDs can determined via GetStorageTypes. |
| expirationDate | date | The expiration date of this download token (yyyy-mm-dd hh-mm-ss). |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/pfile/1/?storagetypeid=3"
Sample HTTP request:
POST /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/pfile/1/?storagetypeid=3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/pfile/3
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 126
<ReplicateFileResponse xmlns="http://data.diomedestorage.com">
<newPhysicalFileID>3</newPhysicalFileID>
</ReplicateFileResponse>
Unreplicate File
SOAP/WCF Method: UnreplicateFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{physicalFileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{physicalFileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| physicalFileID | int64 | The physical file ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/pfile/3"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/pfile/3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get Physical File
SOAP/WCF Method: GetPhysicalFile
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{physicalFileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/pfile/{physicalFileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| physicalFileID | int64 | The physical file ID. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/pfile/1"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/pfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 428
<GetPhysicalFileResponse xmlns="http://data.diomedestorage.com">
<physicalFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<physicalFileID>1</physicalFileID>
<storageTypeID>1</storageTypeID>
<power>0.02354534967</power>
<requestedDate>2010-01-31T00:50:33.703</requestedDate>
<createdDate>2010-01-31T00:50:33.703</createdDate>
<exercisedDate i:nil="true"/>
<expirationDate i:nil="true"/>
</physicalFile>
</GetPhysicalFileResponse>
Get Storage Types
SOAP/WCF Method: GetStorageTypes
REST URL: http://rest.diomedestorage.com/Service.svc/storagetype
Parameters: none
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/storagetype"
Sample HTTP request:
GET /1.1/Service.svc/storagetype HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 519
<GetStorageTypesResponse xmlns="http://data.diomedestorage.com">
<storageTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<StorageType>
<storageTypeID>1</storageTypeID>
<name>Online</name>
<powerPerMB>24.1104997819</powerPerMB>
</StorageType>
<StorageType>
<storageTypeID>2</storageTypeID>
<name>Nearline</name>
<powerPerMB>1.9594840324</powerPerMB>
</StorageType>
<StorageType>
<storageTypeID>3</storageTypeID>
<name>Offline</name>
<powerPerMB>0.485548471</powerPerMB>
</StorageType>
</storageTypes>
</GetStorageTypesResponse>
Create Replication Policy
SOAP/WCF Method: CreateReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/?defaultonline={defaultOnline}&defaultnearline={defaultNearline}&defaultoffline={defaultOffline}&triggerhours={triggerHours}&triggeronline={triggerOnline}&triggernearline={triggerNearline}&triggeroffline={triggerOffline}&expirehours={expireHours}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| defaultOnline | int8 | The desired number of Online Storage copies (1-5) by default. |
| defaultNearline | int8 | The desired number of Nearline Storage copies (1-5) by default. |
| defaultOffline | int8 | The desired number of Offline Storage copies (1-5) by default. |
| triggerHours | int32 | The number of hours after the last successful read/download that the 'TriggerPolicy' will be used. |
| triggerOnline | int8 | The desired number of Online Storage copies (1-5) when the 'TriggerPolicy' is active. |
| triggerNearline | int8 | The desired number of Nearline Storage copies (1-5) when the 'TriggerPolicy' is active. |
| triggerOffline | int8 | The desired number of Offline Storage copies (1-5) when the 'TriggerPolicy' is active. |
| expireHours | int32 | The number of hours after which this file should be deleted (expired). Not specified=unlimited=keep until manually deleted. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/?defaultonline=0&defaultnearline=0&defaultoffline=5&"
Sample HTTP request:
POST /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/?defaultonline=0&defaultnearline=0&defaultoffline=5& HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 156
<CreateReplicationPolicyResponse xmlns="http://data.diomedestorage.com">
<newReplicationPolicyID>3</newReplicationPolicyID>
</CreateReplicationPolicyResponse>
Get Replication Policies
SOAP/WCF Method: GetReplicationPolicies
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 1122
<GetReplicationPoliciesResponse xmlns="http://data.diomedestorage.com">
<replicationPolicies xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ReplicationPolicy>
<replicationPolicyID>1</replicationPolicyID>
<defaultNumOnline>3</defaultNumOnline>
<defaultNumNearline>0</defaultNumNearline>
<defaultNumOffline>0</defaultNumOffline>
<lastAccessTriggerHours>2160</lastAccessTriggerHours>
<lastAccessTriggerNumOnline>0</lastAccessTriggerNumOnline>
<lastAccessTriggerNumNearline>0</lastAccessTriggerNumNearline>
<lastAccessTriggerNumOffline>3</lastAccessTriggerNumOffline>
<expireHours i:nil="true"/>
</ReplicationPolicy>
<ReplicationPolicy>
<replicationPolicyID>2</replicationPolicyID>
<defaultNumOnline>0</defaultNumOnline>
<defaultNumNearline>0</defaultNumNearline>
<defaultNumOffline>5</defaultNumOffline>
<lastAccessTriggerHours>0</lastAccessTriggerHours>
<lastAccessTriggerNumOnline>0</lastAccessTriggerNumOnline>
<lastAccessTriggerNumNearline>0</lastAccessTriggerNumNearline>
<lastAccessTriggerNumOffline>0</lastAccessTriggerNumOffline>
<expireHours i:nil="true"/>
</ReplicationPolicy>
</replicationPolicies>
</GetReplicationPoliciesResponse>
Edit Replication Policy
SOAP/WCF Method: EditReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/{policyID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/{policyID}/?defaultonline={defaultOnline}&defaultnearline={defaultNearline}&defaultoffline={defaultOffline}&triggerhours={triggerHours}&triggeronline={triggerOnline}&triggernearline={triggerNearline}&triggeroffline={triggerOffline}&expirehours={expireHours}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| policyID | int32 | The Replication Policy ID. |
| defaultOnline | int8 | The desired number of Online Storage copies (1-5) by default. |
| defaultNearline | int8 | The desired number of Nearline Storage copies (1-5) by default. |
| defaultOffline | int8 | The desired number of Offline Storage copies (1-5) by default. |
| triggerHours | int32 | The number of hours after the last successful read/download that the 'TriggerPolicy' will be used. |
| triggerOnline | int8 | The desired number of Online Storage copies (1-5) when the 'TriggerPolicy' is active. |
| triggerNearline | int8 | The desired number of Nearline Storage copies (1-5) when the 'TriggerPolicy' is active. |
| triggerOffline | int8 | The desired number of Offline Storage copies (1-5) when the 'TriggerPolicy' is active. |
| expireHours | int32 | The number of hours after which this file should be deleted (expired). Not specified=unlimited=keep until manually deleted. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/2/?defaultonline=0&defaultnearline=2&defaultoffline=1&"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/2/?defaultonline=0&defaultnearline=2&defaultoffline=1& HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete Replication Policy
SOAP/WCF Method: DeleteReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/{policyID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/{policyID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| policyID | int32 | The Replication Policy ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/3"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Set Default Replication Policy
SOAP/WCF Method: SetDefaultReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/default/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/default/?policyid={policyID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| policyID | int32 | The Replication Policy ID. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/default/?policyid=2"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/default/?policyid=2 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get Default Replication Policy
SOAP/WCF Method: GetDefaultReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/default
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/default
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/default"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/default HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 551
<ReplicationPolicy xmlns="http://data.diomedestorage.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<replicationPolicyID>2</replicationPolicyID>
<defaultNumOnline>0</defaultNumOnline>
<defaultNumNearline>0</defaultNumNearline>
<defaultNumOffline>5</defaultNumOffline>
<lastAccessTriggerHours>0</lastAccessTriggerHours>
<lastAccessTriggerNumOnline>0</lastAccessTriggerNumOnline>
<lastAccessTriggerNumNearline>0</lastAccessTriggerNumNearline>
<lastAccessTriggerNumOffline>0</lastAccessTriggerNumOffline>
<expireHours i:nil="true"/>
</ReplicationPolicy>
Set Replication Policy
SOAP/WCF Method: SetReplicationPolicy
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/lfile/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/replicationpolicy/lfile/?policyid={policyID}&fileid={fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| policyID | int32 | The Replication Policy ID. |
| fileID | int64 | The logical file ID. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/lfile/?policyid=2&fileid=1"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/replicationpolicy/lfile/?policyid=2&fileid=1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Create File Metadata
SOAP/WCF Method: CreateFileMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/lfile/{fileID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/lfile/{fileID}/?metaname={metaName}&metavalue={metaValue}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/lfile/1/?metaname=myMetaName&metavalue=myMetaValue"
Sample HTTP request:
POST /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/lfile/1/?metaname=myMetaName&metavalue=myMetaValue HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/?metadataid=1
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 128
<CreateFileMetaDataResponse xmlns="http://data.diomedestorage.com">
<newMetaDataID>1</newMetaDataID>
</CreateFileMetaDataResponse>
Get File Metadata
SOAP/WCF Method: GetFileMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/lfile/{fileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/lfile/{fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| fileID | int64 | The logical file ID. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/lfile/1"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/lfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 310
<GetFileMetaDataResponse xmlns="http://data.diomedestorage.com">
<metaDatas xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<MetaData>
<metaDataID>1</metaDataID>
<name>myMetaName</name>
<value>myMetaValue</value>
<createdDate>2010-01-31T00:50:43.78</createdDate>
</MetaData>
</metaDatas>
</GetFileMetaDataResponse>
Set File Metadata
SOAP/WCF Method: SetFileMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/lfile/{fileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/lfile/{fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaDataID | string | Metadata object ID. |
| fileID | int64 | The logical file ID. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/lfile/1"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/lfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete File Metadata
SOAP/WCF Method: DeleteFileMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/lfile/{fileID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/lfile/{fileID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaDataID | string | Metadata object ID. |
| fileID | int64 | The logical file ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/lfile/1"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/lfile/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Create Metadata
SOAP/WCF Method: CreateMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaName}/{metaValue}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaName}/{metaValue}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/myMetaName/myMetaValue"
Sample HTTP request:
POST /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/myMetaName/myMetaValue HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 201 Created
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Location: http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/?metadataid=2
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 120
<CreateMetaDataResponse xmlns="http://data.diomedestorage.com">
<newMetaDataID>2</newMetaDataID>
</CreateMetaDataResponse>
Get Metadata
SOAP/WCF Method: GetMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/?metadataid={metaDataID}&metaname={metaName}&metavalue={metaValue}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaDataID | string | Metadata object ID. |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/ HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 448
<GetMetaDataResponse xmlns="http://data.diomedestorage.com">
<metaDatas xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<MetaData>
<metaDataID>1</metaDataID>
<name>myMetaName</name>
<value>myMetaValue</value>
<createdDate>2010-01-31T00:50:43.78</createdDate>
</MetaData>
<MetaData>
<metaDataID>2</metaDataID>
<name>myMetaName</name>
<value>myMetaValue</value>
<createdDate>2010-01-31T00:50:44.053</createdDate>
</MetaData>
</metaDatas>
</GetMetaDataResponse>
Edit Metadata
SOAP/WCF Method: EditMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}/?metaname={metaName}&metavalue={metaValue}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaDataID | string | Metadata object ID. |
| metaName | string | Metadata name data. |
| metaValue | string | Metadata value data. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/?metaname=newMetaName&metavalue=newMetaValue"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2/?metaname=newMetaName&metavalue=newMetaValue HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete Metadata
SOAP/WCF Method: DeleteMetaData
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/metadata/{metaDataID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| metaDataID | string | Metadata object ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/metadata/2 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Search Login Log
SOAP/WCF Method: SearchLoginLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/login/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/login/?offset={offset}&page={pageSize}&startdate={startDate}&enddate={endDate}&ip={IP}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| offset | int64 | Starting index (from 0) for paged results. |
| pageSize | int64 | Number of results to return (this page's size). |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| IP | string | IP address (###.###.###.###). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/login/?offset=0&page=10"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/login/?offset=0&page=10 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 356
<SearchLoginLogResponse xmlns="http://data.diomedestorage.com">
<logEntries xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<LoginLogEntry>
<userID>12b4825a-13fc-48a1-959b-0f83b9014e4d</userID>
<loginDate>2010-01-31T00:50:40.56</loginDate>
<loginIP>72.197.91.160</loginIP>
</LoginLogEntry>
</logEntries>
<totalResults>1</totalResults>
</SearchLoginLogResponse>
Search Invoice Log
SOAP/WCF Method: SearchInvoiceLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/invoice/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/invoice/?startdate={startDate}&enddate={endDate}&invoiceStatus={invoiceStatus}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| invoiceStatus | enum | Invoice Status field (0=unknown, 1=not paid, 2=paid) |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/invoice/?invoiceStatus=unpaid"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/invoice/?invoiceStatus=unpaid HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 149
<SearchInvoiceResponse xmlns="http://data.diomedestorage.com">
<invoices xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
</SearchInvoiceResponse>
Search Payment Log
SOAP/WCF Method: SearchPaymentLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/payment/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/payment/?startdate={startDate}&enddate={endDate}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
HTTP Method: GET
Format: XML
Search Files Total Log
SOAP/WCF Method: SearchFilesTotalLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/lfile/totals/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/lfile/totals/?offset={offset}&pagesize={pageSize}&startdate={startDate}&enddate={endDate}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| offset | int64 | Starting index (from 0) for paged results. |
| pageSize | int64 | Number of results to return (this page's size). |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/lfile/totals/?offset=0&page=3"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/lfile/totals/?offset=0&page=3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 962
<SearchFilesTotalLogResponse xmlns="http://data.diomedestorage.com">
<fileTotals xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<FileTotals>
<createdDate>2010-01-31T00:50:40.193</createdDate>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<deletedFileCount>0</deletedFileCount>
<deletedFileBytes>0</deletedFileBytes>
<downloadCount>0</downloadCount>
<downloadBytes>0</downloadBytes>
<uploadCount>0</uploadCount>
<uploadBytes>0</uploadBytes>
<storageTypeTotals>
<StorageTypeTotal>
<storageTypeID>1</storageTypeID>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<power>0</power>
</StorageTypeTotal>
<StorageTypeTotal>
<storageTypeID>2</storageTypeID>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<power>0</power>
</StorageTypeTotal>
<StorageTypeTotal>
<storageTypeID>3</storageTypeID>
<fileCount>0</fileCount>
<fileBytes>0</fileBytes>
<power>0</power>
</StorageTypeTotal>
</storageTypeTotals>
</FileTotals>
</fileTotals>
<totalResults>1</totalResults>
</SearchFilesTotalLogResponse>
Search Download Log
SOAP/WCF Method: SearchDownloadLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/download/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/download/?offset={offset}&pagesize={pageSize}&fileid={fileID}&startdate={startDate}&enddate={endDate}&token={downloadToken}&ip={IP}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| offset | int64 | Starting index (from 0) for paged results. |
| pageSize | int64 | Number of results to return (this page's size). |
| fileID | int64 | The logical file ID. |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| downloadToken | string | Diomede download token. |
| IP | string | IP address (###.###.###.###). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/download/?offset=0&page=3"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/download/?offset=0&page=3 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 189
<SearchDownloadLogResponse xmlns="http://data.diomedestorage.com">
<logEntries xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<totalResults>0</totalResults>
</SearchDownloadLogResponse>
Search Upload Log
SOAP/WCF Method: SearchUploadLog
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/upload/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/logs/upload/?offset={offset}&pagesize={pageSize}&fileid={fileID}&startdate={startDate}&enddate={endDate}&ip={IP}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| offset | int64 | Starting index (from 0) for paged results. |
| pageSize | int64 | Number of results to return (this page's size). |
| fileID | int64 | The logical file ID. |
| startDate | date | Start date (yyyy-mm-dd hh-mm-ss). |
| endDate | date | End date (yyyy-mm-dd hh-mm-ss). |
| IP | string | IP address (###.###.###.###). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/upload/"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/logs/upload/ HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 334
<SearchUploadLogResponse xmlns="http://data.diomedestorage.com">
<logEntries xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<UploadLogEntry>
<fileID>1</fileID>
<uploadTime>2010-01-31T00:50:41.127</uploadTime>
<uploaderIP>72.197.91.160</uploaderIP>
</UploadLogEntry>
</logEntries>
<totalResults>1</totalResults>
</SearchUploadLogResponse>
Set User Info
SOAP/WCF Method: SetUserInfo
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/?lastName={lastName}&firstName={firstName}&companyName={companyName}&websiteUrl={websiteUrl}&phone={phone}&cardName={cardName}&cardNumber={cardNumber}&cardExpiryYear={cardExpiryYear}&cardExpiryMonth={cardExpiryMonth}&cardCvv2={cardCvv2}&cardAddress1={cardAddress1}&cardAddress2={cardAddress2}&cardCity={cardCity}&cardState={cardState}&cardZip={cardZip}&cardCountry={cardCountry}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| lastName | string | The account holder's last name. |
| firstName | string | The account holder's first name. |
| companyName | string | The company name of the account holder. |
| websiteUrl | string | The website URL for the account holder. |
| phone | string | The account holder's telephone number. |
| cardName | string | The name on the credit card. |
| cardNumber | string | The credit card number (15 or 16 digits). |
| cardExpiryYear | int32 | The credit card expiration year (4 digits). |
| cardExpiryMonth | int32 | The credit card expiration month (2 digits). |
| cardCvv2 | string | The 3 or 4 digital code printed on the back of the credit card. |
| cardAddress1 | string | The 1st line of the credit card's billing address. |
| cardAddress2 | string | The 2nd line of the credit card's billing address. |
| cardCity | string | The city of the credit card's billing address. |
| cardState | string | The state of the credit card's billing address. |
| cardZip | string | The zip code of the credit card's billing address. |
| cardCountry | string | The country of the credit card's billing address. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/da44a8fec0704d419aa40751bbc2d2a0/user/?cardName=Jeff%20Bezos&cardNumber=1111111111111914&cardExpiryYear=2025&cardExpiryMonth=12&cardCvv2=123&cardAddress1=123%20Main%20St.&cardCity=San%20Francisco&cardState=CA&cardZip=94120"
Sample HTTP request:
PUT /1.1/Service.svc/da44a8fec0704d419aa40751bbc2d2a0/user/?cardName=Jeff%20Bezos&cardNumber=1111111111111914&cardExpiryYear=2025&cardExpiryMonth=12&cardCvv2=123&cardAddress1=123%20Main%20St.&cardCity=San%20Francisco&cardState=CA&cardZip=94120 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete User Info
SOAP/WCF Method: DeleteUserInfo
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/{infoType}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/{infoType}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| infoType | enum | User information field. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/websiteUrl"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/websiteUrl HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get Email Addresses
SOAP/WCF Method: GetEmailAddresses
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email"
Sample HTTP request:
GET /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 323
<GetEmailsResponse xmlns="http://data.diomedestorage.com">
<emails xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:string>dct-0-fnwieig2@diomedestorage.com</a:string>
<a:string>email-e8aokav5@diomedestorage.com</a:string>
</emails>
</GetEmailsResponse>
Add Email Address
SOAP/WCF Method: AddEmailAddress
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/{email}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/{email}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| email | string | The email address associated with your Diomede account and stored in your Diomede user information. |
HTTP Method: POST
Format: XML
Sample cURL command:
curl -v -d "" "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/email-e8aokav5@diomedestorage.com"
Sample HTTP request:
POST /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/email-e8aokav5@diomedestorage.com HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Delete Email Address
SOAP/WCF Method: DeleteEmailAddress
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/{email}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/{email}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| email | string | The email address associated with your Diomede account and stored in your Diomede user information. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/dct-0-fnwieig2@diomedestorage.com"
Sample HTTP request:
DELETE /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/dct-0-fnwieig2@diomedestorage.com HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Set Primary Email Address
SOAP/WCF Method: SetPrimaryEmailAddress
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/primary/{email}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/user/email/primary/{email}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| email | string | The email address associated with your Diomede account and stored in your Diomede user information. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/primary/email-e8aokav5@diomedestorage.com"
Sample HTTP request:
PUT /1.1/Service.svc/9e71e7e206ed43978564c101c41918c3/user/email/primary/email-e8aokav5@diomedestorage.com HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get All Products
SOAP/WCF Method: GetAllProducts
REST URL: http://rest.diomedestorage.com/Service.svc/products
Parameters: none
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/products"
Sample HTTP request:
GET /1.1/Service.svc/products HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 1075
<GetAllProductsResponse xmlns="http://data.diomedestorage.com">
<products xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Product>
<productID>1</productID>
<name>Diomede Premium Subscription</name>
<description/>
<minMonthlyFee>30000</minMonthlyFee>
<productComponents>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>333</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Download Bandwidth</meterType>
<ratePerGB>750</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Upload Bandwidth</meterType>
<ratePerGB>750</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>2</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>267</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>3</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>100</ratePerGB>
</ProductComponent>
</productComponents>
<supportFee>0</supportFee>
</Product>
</products>
</GetAllProductsResponse>
Get My Products
SOAP/WCF Method: GetMyProducts
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 1132
<GetMyProductsResponse xmlns="http://data.diomedestorage.com">
<products xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<UserProduct>
<product>
<productID>1</productID>
<name>Diomede Premium Subscription</name>
<description/>
<minMonthlyFee>30000</minMonthlyFee>
<productComponents>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>333</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Download Bandwidth</meterType>
<ratePerGB>750</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>1</storageTypeID>
<meterType>Upload Bandwidth</meterType>
<ratePerGB>750</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>2</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>267</ratePerGB>
</ProductComponent>
<ProductComponent>
<description/>
<storageTypeID>3</storageTypeID>
<meterType>Storage</meterType>
<ratePerGB>100</ratePerGB>
</ProductComponent>
</productComponents>
<supportFee>0</supportFee>
</product>
<withSupport>false</withSupport>
</UserProduct>
</products>
</GetMyProductsResponse>
Purchase Product
SOAP/WCF Method: PurchaseProduct
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products/{productID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products/{productID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| productID | int32 | Diomede product (subscription) ID. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products/1"
Sample HTTP request:
PUT /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Cancel Product
SOAP/WCF Method: CancelProduct
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products/{productID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/products/{productID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| productID | int32 | Diomede product (subscription) ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products/1"
Sample HTTP request:
DELETE /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/products/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)
Get All Contracts
SOAP/WCF Method: GetAllContracts
REST URL: http://rest.diomedestorage.com/Service.svc/contracts
Parameters: none
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/contracts"
Sample HTTP request:
GET /1.1/Service.svc/contracts HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 1588
<GetAllContractsResponse xmlns="http://data.diomedestorage.com">
<contracts xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Contract>
<contractID>1</contractID>
<ratePerTerm>19899600</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>1</storageTypeID>
<meterType>Storage</meterType>
<committedGB>3000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</Contract>
<Contract>
<contractID>2</contractID>
<ratePerTerm>15895700</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>2</storageTypeID>
<meterType>Storage</meterType>
<committedGB>3000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</Contract>
<Contract>
<contractID>3</contractID>
<ratePerTerm>4751500</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>3</storageTypeID>
<meterType>Storage</meterType>
<committedGB>3000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</Contract>
<Contract>
<contractID>4</contractID>
<ratePerTerm>45143500</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>3</storageTypeID>
<meterType>Storage</meterType>
<committedGB>30000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</Contract>
<Contract>
<contractID>5</contractID>
<ratePerTerm>428867500</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>3</storageTypeID>
<meterType>Storage</meterType>
<committedGB>300000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</Contract>
</contracts>
</GetAllContractsResponse>
Get My Contracts
SOAP/WCF Method: GetMyContracts
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
HTTP Method: GET
Format: XML
Sample cURL command:
curl -v "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts"
Sample HTTP request:
GET /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 595
<GetMyContractsResponse xmlns="http://data.diomedestorage.com">
<contracts xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<UserContract>
<userContractID>196013</userContractID>
<contract>
<contractID>1</contractID>
<ratePerTerm>19899600</ratePerTerm>
<term>24</term>
<contractComponents>
<ContractComponent>
<storageTypeID>1</storageTypeID>
<meterType>Storage</meterType>
<committedGB>3000</committedGB>
</ContractComponent>
</contractComponents>
<description/>
</contract>
<startDate>2010-01-31T00:00:00</startDate>
<endDate>2012-01-31T00:00:00</endDate>
</UserContract>
</contracts>
</GetMyContractsResponse>
Purchase Contract
SOAP/WCF Method: PurchaseContract
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts/{contractID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts/{contractID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| contractID | int32 | Diomede contract ID. |
HTTP Method: PUT
Format: XML
Sample cURL command:
curl -v -d "" -X PUT "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts/1"
Sample HTTP request:
PUT /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts/1 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Content-Length: 0
Content-Type: application/x-www-form-urlencoded
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 131
<PurchaseContractResponse xmlns="http://data.diomedestorage.com">
<userContractID>196013</userContractID>
</PurchaseContractResponse>
Cancel Contract
SOAP/WCF Method: CancelContract
REST URL: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts/{contractID}
Full REST URL prototype: http://rest.diomedestorage.com/Service.svc/{sessionToken}/contracts/{contractID}
Parameters (applies to both SOAP & REST methods):
| sessionToken | string | Diomede session token (retrieved after successful login/authentication). |
| contractID | int32 | Diomede contract ID. |
HTTP Method: DELETE
Format: XML
Sample cURL command:
curl -v -X DELETE "http://rest.diomedestorage.com/1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts/196013"
Sample HTTP request:
DELETE /1.1/Service.svc/2a896b3e7dfe45cdb1a5bedfbe956c37/contracts/196013 HTTP/1.1
Host: rest.diomedestorage.com
Accept: */*
Sample HTTP response:
HTTP/1.1 200 OK
Cache-Control: private
Server: Diomede
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Fri, 23 Jan 2009 09:14:00 GMT
Content-Length: 0
(no body)