Authorization
and Api-Version
. The details are explained below. In addition to these headers, any requests requiring content must be sent in an acceptable scheme to CloudAPI. Details are also below.application/json
, application/x-www-form-urlencoded
or multipart/form-data
. Joyent recommends application/json
. The value of the Accept
header determines the encoding of content returned in responses. CloudAPI supports application/json
response encodings only.demo
, and you've uploaded an RSA SSH key with the name foo
, an Authorization header would look like:Date
header. For more information on the Date header value, see RFC 2616. All requests to CloudAPI using the Signature authentication scheme must send a Date header. Note that clock skew will be enforced to within 300 seconds (positive or negative) from the value sent.http-signature
module, which you can install with:application/json
encoded HTTP bodies. In addition to the JSON body, all responses have the following headers: