Element | +Description | +
---|---|
uuid | +Unique identifier for the secret. This value is + assigned by the API. | +
name | +Human readable name for the secret. | +
expiration | +The expiration date for the secret in ISO-8601 + format. Once the secret has expired, it will no longer + be returned by the API or agent. | +
secret | +The base64-encoded value of the secret. | +
secret_type | +An indication of the type of the file presenting the + secret. | +
text/plain
and do not specify a
+ Method | +Content Type | +Content Encoding | +Result | +
---|---|---|---|
text/plain |
+ Must be omitted | +The supplied payload is encrypted | +|
application/json for
+ Accept header |
+ Not required/ignored | +Returns JSON metadata, with
+ "default": "text/plain" . |
+ |
text/plain for Accept
+ header |
+ Not required/ignored | +Returns the decrypted payload from the previous + request. | +
application/octet-stream
and the
+ base64
. When you make the
+ Method | +Content Type | +Content Encoding | +Result | +
---|---|---|---|
application/octet-stream |
+ base64 |
+ Supplied payload is converted from base64 to + binary, and then encrypted. | +|
application/json for
+ Accept header |
+ Not required/ignored | +JSON metadata, with the
+ "default":
+ "application/octet-stream" |
+ |
application/octet-stream for
+ Accept header |
+ Not specified | +Previous payload is decrypted and returned as raw
+ binary, even if the base64 format. |
+
Method | +Content Type | +Content Encoding | +Result | +
---|---|---|---|
Not required/ignored | +Not required/ignored | +Only metadata is created. If the
+ |
+ |
Content-Type header set to
+ application/octet-stream |
+ Content-Encoding header set to
+ base64 |
+ Supplied request body is converted from
+ base64 to binary, then
+ encrypted. |
+ |
Content-Type header set to
+ application/octet-stream |
+ Not specified | +Supplied request body is encrypted as is. | +|
Accept header set to
+ application/json |
+ Not required/ignored | +Returns JSON metadata, with
+ "default":
+ "application/octet-stream" |
+ |
Accept header set to
+ application/octet-stream |
+ Not required/ignored | +The previous request is decrypted and returned + as raw binary. | +
text/plain
which
+ stores the payload as is.Action | +Content Type | +Content Encoding | +Result | +
---|---|---|---|
Not required/ignored | +Not required/ignored | +Only metadata is created. If the
+ |
+ |
Content-Type header is set to
+ text/plain . |
+ Not required/ignored | +Supplied request body is encrypted as is. | +|
Accept header is set to
+ application/json . |
+ Not required/ignored | +Returns JSON metadata, with the
+ "default": "text/plain" |
+ |
Accept header is set to
+ text/plain . |
+ Not specified | +The previous request is decrypted and returned + as UTF-8 text. | +
Element | +Description | +
---|---|
secret | +Lists all the secret parameters provided in the + original order request. | +
order_ref | +Specifies the URI pointing to the order. | +
status | +Specifis the status of the order. Can be
+ PENDING , ACTIVE or
+ ERROR . |
+
secret_ref | +Specifies the URI to the secret ACTIVE . |
+
error_status_code | +Optional. Specifies the HTTP-style status code of
+ the root cause error condition, only if the status is
+ ERROR . |
+
error_reason | +Optional. Provides details of the root cause of the
+ error, only if the status is ERROR . |
+
X-Auth-Token
HTTP header. Customers obtain this
- token by first using the Rackspace Cloud Identity service and
- supplying a valid user name and API access key. X-Auth-Token
HTTP header. If you access
+ multiple OpenStack services, you must get a token for each
+ service. A token is valid for a limited time before it
+ expires. A token can also become invalid for other reasons.
+ For example, if the roles for a user change, existing tokens
+ for that user are invalid.username
supplied here is your
- common Rackspace Cloud user name. expires
attribute denotes
the time after which the token automatically becomes
invalid. A token can be manually revoked before the time
- identified by the expires
attribute.
- Theexpires
attribute predicts a token's
+ identified by the expires
attribute. The
+ expires
attribute predicts a token's
maximum possible lifespan but does not guarantee that it
will reach that lifespan. Users are encouraged to cache
a token until it expires. jsmith
is the administrative user for the
- account and holds the fully-privileged
- identity:admin
role. Other users might
- hold other roles with different privileges. Roles are
- not necessarily associated with actual job functions
- such as Administrator, Operator, Developer, Tester, or
- Trainer. type="store"
, indicating that
- it is a storage service even though the word "storage"
- does not appear in its name. https://ord.secrets.api.rackspacecloud.com/v1.0/
https://<endpoint>/v1.0/
https://dfw.secrets.api.rackspacecloud.com/v1.0/
https://<endpoint>/v1.0/
https://lon.secrets.api.rackspacecloud.com/v1.0/
https://<endpoint>/v1.0/
https://syd.secrets.api.rackspacecloud.com/v1.0/
https://<endpoint>/v1.0/
https://hkg.secrets.api.rackspacecloud.com/v1.0/
https://<endpoint>/v1.0/
publicURL
field returned by the authentication
- response. For example, in publicURL
field for secrets
- ("https://ord.secrets.api.rackspacecloud.com/v1.0/Content-Type
header. The request format is
+ Content-Type
header. The request format is
Accept
header or by
- adding a .json
extension to the request URI. JSON
- is also used for the response format.Accept
header.JSON | application/json | -.json | +Yes | |
XML | -application/xml | -.xml | -No | -
^/v1.0/execute
would match the bolded portion
- of the following URI:
- https://ord.secrets.api.rackspacecloud.comRetry-After
header
- to notify the client when it can attempt to try again.
- Action | -content-type | -content-encoding | -Result | -
---|---|---|---|
POST secrets | -payload_content_type = text/plain | -payload_content_encoding not needed | -Supplied payload is encrypted | -
GET secrets (meta) | -Accept: application/json | -Not required/ignored | -JSON metadata, with content-type set to - 'default':'text/plain' | -
GET Secrets | -Accept: text/plain | -Not required/ignored | -Previous payload is decrypted | -
Action | -content-type | -content-encoding | -Result | -
---|---|---|---|
POST secrets | -payload_content_type = application/octet-stream | -payload_content_encoding = base64 | -Supplied payload is converted from base64 to binary, - then encrypted | -
GET secrets (meta) | -Accept: application/json | -Not required/ignored | -JSON metadata, with content-type set to - 'default':'application/octet-stream' | -
GET Secrets | -Accept: text/plain | -Not specified | -Previous payload is decrypted and returned as raw - binary, even if the PUT request provided data in - base64. | -
Action | -content-type | -content-encoding | -Result | -
---|---|---|---|
POST secrets | -payload_content_type optionally specified | -payload_content_encoding optionally specified | -Only metadata is created. If the - payload_content_type or payload_content_encoding - fields were provided, they are not used or saved - with the metadata. The PUT request (next) will - determine the secret's content type | -
GET secrets (meta) | -Content-type: application/octet-stream | -Content-Encoding: base64 | -Supplied request body is |
-
GET Secrets | -Content-type: application/octet-stream | -Not specified | -Supplied request body is encrypted as is | -
POST secrets | -Accept: application/json | -Not required/ignored | -JSON metadata, with Content-Types set to - 'default':'application/octet-stream' | -
POST secrets | -Accept: application/octet-stream | -Not specified | -Previous request is decrypted and returned as raw
- binary, |
-
Action | -content-type | -content-encoding | -Result | -
---|---|---|---|
POST secrets | -payload_content_type = optionally specified | -payload_content_encoding optionally specified | -Only metadata is created. If the - payload_content_type or payload_content_encoding - fields were provided, they are not used or saved - with the metadata. The PUT request (next) will - determine the secret's content format | -
PUT secrets | -Content-type: text/plain | -Not required/ignored | -JSON metadata, with content-type set to - 'default':'text/plain' | -
GET secrets (meta) | -Accept: application/json | -Not required/ignored | -JSON metadata, with Content-Types set to - 'default':'text/plain' | -
GET secrets (decrypted) | -Accept: text/plain | -Not specified | -Previous request is decrypted and returned as - utf-8 text | -
Secret Type | +Secret type | Description | |
---|---|---|---|
Symmetric Keys | -Perform reversible encryption of data - at rest, typically using the AES - algorithm set. Symmetric keys are - required to enable features, such as - encrypted Swift containers and Cinder - volumes, encrypted Cloud Backups, - etc. | +Symmetric keys | +Symmetric keys perform reversible + encryption of data at rest, typically + by using the AES algorithm set. + Symmetric keys are required to enable + features, such as encrypted Cloud + Object Storage containers and Cloud + Block Storage volumes, encrypted Cloud + Backups, and so on. |
Asymmetric Keys | +Asymmetric keys | Asymmetric key pairs (sometimes - referred to as public / private keys) - are used in many scenarios where + referred to as public and private + keys) are used in many scenarios where communication between untrusted - parties is desired. The most common + parties is necessary. The most common case is with SSL/TLS certificates. - Asymmetric keys but are also used in + Asymmetric keys are also used in solutions like SSH keys, S/MIME (mail) - encryption and digital + encryption, and digital signatures. | |
Raw Secrets | -Barbican stores secrets as binary - blocks of data (encrypted, naturally). - Clients can use the API to store any - secrets in any format they desire. + | Raw secrets | +Barbican stores raw secrets as binary + blocks of data that are encrypted. + Customers can use the API to store any + secrets in any format that they want. |
Region | -Endpoint | -|||||
Chicago (ORD) | -https://<tbd> |
- |||||
Dallas/Ft. Worth - (DFW) | -https://<tbd> |
- |||||
London (LON) | -https://<tbd> |
- |||||
Sydney (SYD) | -
- https://<tbd> |
- |||||
Hong Kong (HKG) | -
- <tbd> |
-
X-Auth-Token
header. https://identity.api.rackspacecloud.com/v2.0/tokens
,
- as shown in the following Authenticate Request examples.
- Note that the v2.0
component in the URL
- indicates that you are using version 2.0 of the Cloud Auth
- API.'https://lon.identity.api.rackspacecloud.com/v2.0/tokens'
- instead.id
is returned
- along with an expires
attribute that
- specifies when the token expires. id
attribute in the
- Authenticate Response specifies the
- authentication token. Tokens are valid for a
- finite duration.expires
attribute denotes
- the time after which the token will
- automatically become invalid. A token may be
- manually revoked before the time identified by
- the expires attribute; expires
- predicts a token's maximum possible lifespan
- but does not guarantee that it will reach that
- lifespan. Clients are encouraged to cache a
- token until it expires.publicURL
endpoints for
- cloudDatabases
(for example
- https://ord.databases.api.rackspacecloud.com/v1.0/1100111
)
- are also returned in the response. publicURL
field. In this example,
- you can see that the account number is 1100111. Tool | -Description | -
---|---|
pyenv | -Python Version Management tool. Available - for download from GitHub. | -
pyenv-virtualenv | -pyenv plugin that provides a pyenv - virtualenv command to create virtualenv - for Python on UNIX-like systems. Available - for download from GitHub. | -
Git | -Git client. Available for download from - http://git-scm.com/downloads. | -
cURL | -Command line tool for transferring data - with URL syntax. Available for download - from: http://curl.haxx.se/. | -
pip | -Python installer tool. Available for - download from: http://www.pip-installer.org/en/latest/installing.html. | -
Option | +Description | +
---|---|
+ | Sends the specified data in a POST + request to the HTTP server | +
+ | Includes the HTTP header in the + output. | +
+ | Specifies an HTTP header in the + request. | +
+ | Specifies the request method to use + when communicating with the HTTP + server. The specified request is used + instead of the default method, which + is GET. For example, specifies to use the + PUT request method. | +
id
is returned with an
+ expires
attribute that specifies when the
+ token expires. text/plain
.application/octet-stream
.Accept
header
+ that is provided in the Accept
+ header, read Accept
header set to
+ application/json
.Accept
+ header to either
+ application/octet-stream
for
+ binary secrets or to text/plain
+ for text-based secrets. 200 OK
response as shown in
+ the following example:secret_ref
+ information as you will need it for
+ uploading the secret data.200 OK
+ message as shown in the following
+ example:false
, which excludes the metadata.
- false
, which excludes the metadata.
- false
, which
+ excludes the metadata.