Versions Compared

Key

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

If you have a storage domain that was created outside the Content Management API (such as a replication cluster), it is possible to have a tenant adopt it so that you can access it through the Content Portal. However, if that storage domain was created with Swarm's legacy auth/auth, there is a special variation to the domain adoption procedure, noted below.

For domain adoption, ensure that:

  • The tenant exists.

  • The cluster administrator executes these actions directly against the storage cluster and not through the Gateway.

    Info
    titleNote
    This is a highly privileged operation that has no equivalent request within the Gateway.


To adopt a domain

  1. Get all of the custom metadata that is attached to the domain.

  2. Update the domain providing all custom metadata and an x-tenant-meta-name header.

This is an example of the commands. The strings {tenant} and {domain} are substituted for the actual tenant name and storage domain name.

...

If the domain has Swarm's legacy auth/auth on it, there will be a Castor-Authorization header in the response or you may receive a "401 Unauthorized" response to the previous request. See the section below for instructions to remove the legacy auth/auth.

title
Info

Deprecated

The native Swarm auth/auth feature is deprecated and will be removed after June 2017.

...

For details about headers, seeĀ SCSP Headers andĀ SCSP COPY.

After getting all of the custom metadata name/value pairs (denoted as {mdName#} and {mdValue#}) from the HEAD request, use the COPY request to replace all of the storage domain object's metadata and include the adoptive tenant's name:

...

If the storage domain has the legacy auth/auth on it, you need to remove it so that the domain can be used correctly through Gateway. These examples will use the curl command line utility since it is able to perform HTTP digest authentication. You can adapt these examples for use with another tool or library in order to issue the HEAD and COPY commands. Since this process is very similar to the previous one for domains without legacy auth/auth, references will be made to the instructions from the previous section. The {adminUser} username in these examples must be for one of the Swarm administrators defined in the storage cluster's configuration. The {storageNode} string is the host or IP for any node in the storage cluster.

...

Code Block
curl -X COPY --digest -u {adminUser} 
	--location-trusted
	-H 'x-tenant-meta-name: {tenant}'
	-H '{mdName1}: {mdValue1}'
	-H '{mdName2}: {mdValue2}'
	...
	'http://{storageNode}/?domain={domain}&replicate=immediate'

All of the prior discussion about the x-tenant-meta-name value and post-creation domain behavior apply.