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
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
| Flag | Description |
|---|---|
| --id= int64 Required | Site Subdomain Redirect ID. |
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
| Flag | Description |
|---|---|
| --id= int64 Required | Site Subdomain Redirect ID. |
The SiteSubdomainRedirect Object
Some of the commands above return a SiteSubdomainRedirect object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| 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. |