Controller: DomainsSlave

API Controller /siteworx/domains/slave
Required Permissions ["SLAVEDOMS"]
Required Options Secondary Domains
Action Description
add Add a secondary domain.
delete Delete a secondary domain.
list List secondary domains. DEPRECATED in version 4.8.0-393
listIds List secondary domains by id. DEPRECATED in version 4.8.0-393
listSecondaryDomains List master domain and secondary domains.

Action: add

Add a secondary domain.

Input Parameters

Name Type Notes Required?
domain string
Description
http://www.
Yes

Action: delete

Delete a secondary domain.

Input Parameters

Name Type Notes Required?
domain struct (string)
Example Values
secondary.com
Yes

Action: list

This action has been deprecated as of version 4.8.0-393.

MESSAGE: 2010-11-18 use listSecondaryDomains

List secondary domains.

Example Output

array (
  'status' => 0,
  'payload' => 
  array (
    0 => 'example.com',
    1 => 'secondary.com',
  ),
)

Action: listIds

This action has been deprecated as of version 4.8.0-393.

MESSAGE: 2010-11-18 no longer servers any real purpose, will be removed.

List secondary domains by id.

Example Output

array (
  'status' => 0,
  'payload' => 
  array (
    0 => 
    array (
      0 => '171',
      1 => 'secondary.com',
    ),
  ),
)

Action: listSecondaryDomains (Added in version 4.8.0-393)

List master domain and secondary domains.

Example Output

array (
  'status' => 0,
  'payload' => 
  array (
    0 => 
    array (
      'domain' => 'example.com',
      'type' => 'master',
    ),
    1 => 
    array (
      'domain' => 'secondary.com',
      'type' => 'slave',
    ),
  ),
)