POST | @@ -200,11 +198,11 @@ (
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
, the payload
- will be converted from base64 to binary format and encrypted.
- You should also receive a response
- with a secret reference URL.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. |
-
payload_content_type
, or payload_content_encoding
.
- Submitting a application/octet
- stream and the content encoding to base64
. This will convert
- the payload from base64
to binary format and then encrypt
- it.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. | -
payload_content_type
, or
- payload_content_encoding
. Submitting a text/plain
which will
- store 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. | -
text/plain
and do not specify the
+ Method | +Content type | +Content encoding | +Result | +
---|---|---|---|
payload_content_type is set to text/plain |
+ Not required, is ignored if provided. | +The supplied payload is encrypted and stored. | +|
Accept header is set to application/json |
+ Not required, is ignored if provided | +Returns JSON metadata, with the "default":"text/plain" . |
+ |
Accept header is set to text/plain |
+ Not required, is ignored if provided | +Returns the decrypted plain-text payload from the previous request. | +
application/octet-stream
and the
+ base64
, the payload is converted from base64 to binary format and
+ encrypted and then stored. You should also receive a response with a reference URL
+ to the secret.Method | +Content type | +Content encoding | +Result | +
---|---|---|---|
Content-Type header is set to
+ application/octet-stream |
+ base64 |
+ Supplied payload is converted from base64 to binary, and then + encrypted. | +|
Accept header is set to application/json |
+ Not required, is ignored if provided | +Returns JSON metadata, with the "default":"application/octet-stream" |
+ |
Accept header is set to application/octet-stream
+ |
+ Not specified | +Stored secret is decrypted and returned as raw binary, even if the
+ base64
+ format. |
+
payload_content_type
, or
+ payload_content_encoding
. Submitting a Content-Type
header to application/octet
+ stream.Method | +Content type | +Content encoding | +Result | +
---|---|---|---|
Not required, is ignored if provided | +Not required, is ignored if provided | +Only metadata is created. If the
+ |
+ |
Content-Type header is set to text/plain |
+ Not required, is ignored if provided | +Supplied request body is encrypted as is. | +|
Accept header is set to text/plain |
+ Not required, is ignored if provided | +Returns JSON metadata, with "default": "application/octet-stream" . |
+ |
Accept header is set to
+ application/octet-stream |
+ Not required, is ignored if provided | +The previous request is decrypted and returned as raw binary. | +
payload_content_type
, or
+ payload_content_encoding
. Submitting a Content-Encoding
header to base64
. To
+ upload binary secrets, do not set the Content-Encoding
header.Action | +Content type | +Content encoding | +Result | +
---|---|---|---|
Not required, is ignored if provided | +Not required, is ignored if provided | +Only metadata is created. If the
+ |
+ |
Content-Type header is set to text/plain . |
+ Not required, is ignored if provided | +Supplied request body is encrypted as is. | +|
Accept header is set to application/json . |
+ Not required, is ignored if provided | +Returns JSON metadata, with the "default": "text/plain" . |
+ |
Accept header is set to text/plain . |
+ Not required, is ignored if provided | +The previous request is decrypted and returned as UTF-8 text. | +
false
, which excludes the metadata.
- queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.total
attribute is 0, then oldest
and newest
message statistics are not included in the response.503 Service Unavailable
error message. body
attribute specifies an arbitrary document that constitutes the body of the message being sent. The size of this body is limited to 256 KB, excluding whitespace. The document must be valid JSON. (Cloud Queues validates it.)ttl
attribute specifies how long the server waits before marking the message as expired and removing it from the queue. The value of ttl
must be between 60 and 1209600 seconds (14 days). Note that the server might not actually delete the message until its age has reached up to (ttl + 60) seconds, to allow for flexibility in storage implementations. marker
parameter communicates to the server which messages the client has already received. If you do not specify a value, the API returns all messages at the head of the queue (up to the limit).
- echo
parameter is a Boolean value (true
or false
) that determines whether the API returns a client's own messages, as determined by the uuid
portion of the User-Agent header. If you do not specify a value, echo
uses the default value of false
. If you are experimenting with the API, you might want to set echo=true
in order to see the messages that you posted.
- include_claimed
parameter is a Boolean value (true
or false
) that determines whether the API returns claimed messages and unclaimed messages. If you do not specify a value, include_claimed
uses the default value of false
(only unclaimed messages are returned).
- href
is an opaque relative URI that the client can use to uniquely identify a message resource and interact with it. ttl
is the TTL that was set on the message when it was posted. The message expires after (ttl - age) seconds. age
is the number of seconds relative to the server's clock.body
is the arbitrary document that was submitted with the original request to post the message. href
is an opaque relative URI that the client can use to uniquely identify a message resource and interact with it. ttl
is the TTL that was set on the message when it was posted. The message expires after (ttl - age) seconds. age
is the number of seconds relative to the server's clock.body
is the arbitrary document that was submitted with the original request to post the message. claim_id
parameter specifies that the message is deleted only if it has the specified claim ID and that claim has not expired. This specification is useful for ensuring only one worker processes any given message. When a worker's claim expires before it can delete a message that it has processed, the worker must roll back any actions it took based on that message because another worker can now claim and process the same message. claim_id
, but the message is claimed, the operation fails. You can only delete claimed messages by providing an appropriate claim_id
.limit
parameter) from oldest to newest and skips any messages that are already claimed. If no unclaimed messages are available, the API returns a 204 No Content
message. ttl
attribute specifies how long the server waits before releasing the claim. The ttl value must be between 60 and 43200 seconds (12 hours). You must include a value for this attribute in your request. grace
attribute specifies the message grace period in seconds. The value of grace
value must be between 60 and 43200 seconds (12 hours). You must include a value for thia attribute in your request. To deal with workers that have stopped responding (for up to 1209600 seconds or 14 days, including claim lifetime), the server extends the lifetime of claimed messages to be at least as long as the lifetime of the claim itself, plus the specified grace period. If a claimed message would normally live longer than the grace period, its expiration is not adjusted. limit
is not specified, limit
defaults to 10.
- queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.false
, which excludes the metadata.
- queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.total
attribute is 0, then oldest
and newest
message statistics are not included in the response.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.queue_name
is the name that you give to the queue. The name must not exceed 64 bytes in length, and it is limited to US-ASCII letters, digits, underscores, and hyphens.503 Service Unavailable
error message. body
attribute specifies an arbitrary document that constitutes the body of the message being sent. The size of this body is limited to 256 KB, excluding whitespace. The document must be valid JSON. (Cloud Queues validates it.)ttl
attribute specifies how long the server waits before marking the message as expired and removing it from the queue. The value of ttl
must be between 60 and 1209600 seconds (14 days). Note that the server might not actually delete the message until its age has reached up to (ttl + 60) seconds, to allow for flexibility in storage implementations. marker
parameter communicates to the server which messages the client has already received. If you do not specify a value, the API returns all messages at the head of the queue (up to the limit).
- echo
parameter is a Boolean value (true
or false
) that determines whether the API returns a client's own messages, as determined by the uuid
portion of the User-Agent header. If you do not specify a value, echo
uses the default value of false
. If you are experimenting with the API, you might want to set echo=true
in order to see the messages that you posted.
- include_claimed
parameter is a Boolean value (true
or false
) that determines whether the API returns claimed messages and unclaimed messages. If you do not specify a value, include_claimed
uses the default value of false
(only unclaimed messages are returned).
- href
is an opaque relative URI that the client can use to uniquely identify a message resource and interact with it. ttl
is the TTL that was set on the message when it was posted. The message expires after (ttl - age) seconds. age
is the number of seconds relative to the server's clock.body
is the arbitrary document that was submitted with the original request to post the message. href
is an opaque relative URI that the client can use to uniquely identify a message resource and interact with it. ttl
is the TTL that was set on the message when it was posted. The message expires after (ttl - age) seconds. age
is the number of seconds relative to the server's clock.body
is the arbitrary document that was submitted with the original request to post the message. claim_id
parameter specifies that the message is deleted only if it has the specified claim ID and that claim has not expired. This specification is useful for ensuring only one worker processes any given message. When a worker's claim expires before it can delete a message that it has processed, the worker must roll back any actions it took based on that message because another worker can now claim and process the same message. claim_id
, but the message is claimed, the operation fails. You can only delete claimed messages by providing an appropriate claim_id
.limit
parameter) from oldest to newest and skips any messages that are already claimed. If no unclaimed messages are available, the API returns a 204 No Content
message. ttl
attribute specifies how long the server waits before releasing the claim. The ttl value must be between 60 and 43200 seconds (12 hours). You must include a value for this attribute in your request. grace
attribute specifies the message grace period in seconds. The value of grace
value must be between 60 and 43200 seconds (12 hours). You must include a value for thia attribute in your request. To deal with workers that have stopped responding (for up to 1209600 seconds or 14 days, including claim lifetime), the server extends the lifetime of claimed messages to be at least as long as the lifetime of the claim itself, plus the specified grace period. If a claimed message would normally live longer than the grace period, its expiration is not adjusted. limit
is not specified, limit
defaults to 10.
-