Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel2
outlinefalse
typelist
printablefalse

Swarm Storage has two types of context objects: domains and buckets. When you create them from Gateway, follow these guidelines:

Required Header

Gateway requires that the HTTP POST request include the following header to identify the content type as a context object when clients create these contexts:

...

The Gateway returns an HTTP 400 Bad Request error response to the client if contexts are not explicitly identified as shown during creation.

...

Note

Contexts that already exist in the storage cluster or that are created directly to the cluster do not require this Content-Type specification to work properly with Gateway.

Required Argument

SCSP requires you to add the domain query argument when creating a storage domain, regardless of the existence of a X-Forwarded-Host or Host header on the request.

Optional Sub-

...

Resources

Gateway supports the common application need to immediately create one or more of the IDSYS, Policy, and XFORM sub-resources for the new context in a one-shot request. This is performed by including the additional documents within a JSON formatted request body on the context create request. If you do not need this one-shot creation of authentication for the context, the context is created with an HTTP POST request that is submitted with a null request body, Content-Length zero, and Content-Type of application/castorcontext.

...