WRITE for Unnamed Objects

SCSP methods can be created and run on unnamed objects in any domain. Housing (tenanting) unnamed objects in domains support metered environments that need to allocate storage to users based on the domain. The domain is not used to later locate the unnamed object in the cluster.

A cluster administrator must create the domain and enable the cluster configuration setting cluster.enforceTenancy to be able to create an unnamed object in a domain. See https://perifery.atlassian.net/wiki/spaces/public/pages/2443821769.

An unnamed object is written to a specific domain by including the domain in a query argument or the HOST header:

Which domain? 

Alias Object

Immutable Object

 

Which domain? 

Alias Object

Immutable Object

 

Unspecified
(Default Domain)

POST /?alias

POST /

Every unnamed object that has no domain explicitly defined belongs to the default cluster domain.

Verify the cluster administrator has set up a default domain, which is a domain name that exactly matches the name of the cluster.

By Query Argument

POST /?domain=domain-name&alias

POST /?domain=domain-name



By Host Name

POST /?alias

Host: domain-name

POST /

Host: domain-name

 

Warning

Swarm performs several attempts to look up the invalid domain before timing out on every request if the application passes an invalid HOST header: a domain that does not exist in or matches the cluster name.

 

© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.