Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Table of Contents

...

Table of Contents
minLevel1
maxLevel2
outlinefalse
typelist
printablefalse
Info

Important

All commands include specific formats for named objects and for unnamed objects.

When to

...

Include Domain and Host

The only time domain Domain is required is for an SCSP method methods on a domain object itself. Neither domain nor Host is required for requests within the default cluster domain; otherwise, the domain name must be passed as the Host in the request. (Your A cluster should needs to have one domain with the same name as the cluster, which sets up a default cluster domain.)

Client applications most often send the domain name as the Host in the request. When the Host header does not match the domain name, the The client can supply the domain argument to explicitly override any value from the Host request header when the Host header does not match the domain name, . A domain argument always has precedence over the Host header in the HTTP/1.1 request.

Calling

...

Named Objects

The named object format is:

Code Block
languagexml
METHOD /bucketname/objectname[?query-arguments] HTTP/1.1

where

  • bucketname is a

    simple,

    URL-encoded identifier that cannot contain slash characters

    (

    or any other character not allowed in HTTP

    URLs)

    URL

  • objectname is any legitimate URL, which can contain slash characters.

Calling

...

Unnamed Objects

The unnamed object format is:

Code Block
languagexml
METHOD /[uuid][?query-arguments] HTTP/1.1

You specify Specify the UUID with all SCSP methods except WRITE, in which case the cluster will return returns the UUID in the response if the write is successful.

title
Info

Important

When writing unnamed objects, use

Use a HOST header equivalent to the cluster name, the host IP address, or a domain=clusterName query

arg

argument on all requests even if

you are

not using domains for other purposes when writing unnamed objects.

Infonote
title

Caution

When writing unnamed objects, ensure that your

Verify the application is not passing a HOST header

that is

equal to neither an IP address nor a domain that exists in the cluster

(

unless the host header matches the cluster name

)

when writing unnamed objects. Swarm

will attempt

attempts to look up the non-existent domain on every request and

will wait

waits for multiple retries before the lookup times out, impacting performance.