Site Subdomain Redirects

A SiteSubdomainRedirect object represents an old Files.com subdomain that continues to work after the site's Files.com subdomain changes. HTTPS requests redirect to the current subdomain, and other protocols such as FTP and SFTP are routed through DNS.

List Site Subdomain Redirects

Command

files-cli site-subdomain-redirects list

Output

Outputs a list of SiteSubdomainRedirect objects according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

files-cli site-subdomain-redirects list

Show Site Subdomain Redirect

Command

files-cli site-subdomain-redirects find

Output

Outputs a SiteSubdomainRedirect object according to the output format.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Site Subdomain Redirect ID.

Example Request

files-cli site-subdomain-redirects find \
  --id=1

Delete Site Subdomain Redirect

Command

files-cli site-subdomain-redirects delete

Output

No output is returned.

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Flags

FlagDescription
--id=
int64
Required
Site Subdomain Redirect ID.

Example Request

files-cli site-subdomain-redirects delete \
  --id=1

The SiteSubdomainRedirect Object

Some of the commands above return a SiteSubdomainRedirect object. The attributes of this object are listed below.

AttributeDescription
id
int64
Site subdomain redirect ID.
subdomain
string
Files.com subdomain that continues to route to the current site subdomain.
created_at
date-time
When this redirect was created.
updated_at
date-time
When this redirect was last updated.