Domain Alias

The create operation of the site-alias operator enables you to create a domain alias belonging to an existing subscription, set the ICP permit status, and assign an ICP permit ID to the domain alias.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 
Request Packet Structure

To create a domain alias and set the ICP permit information for it, use the create operation of the site-alias operator with the pref, icp-status, and icp-permit nodes.

<packet>
   <site-alias>
      <create>
         ...
         <pref>
            <icp-status>false</icp-status>
            <icp-permit>123456789</icp-permit>
         </pref>
      </create>
   </site-alias>
</packet>

For more information about the create node, including its graphical representation and the descriptions and properties of dependent nodes, click here.

 
Response Packet Structure

The structure of the create node of the response packet is described here.

 
Samples

The following packet creates a domain alias named sample.com for the example.com domain, grants it the "ICP permit approved" status, and assigns the ICP permit "123456789" to it:

<packet>
   <site-alias>
      <create>
         <pref>
            <icp-status>true</icp-status>
            <icp-permit>123456789</icp-permit>
         </pref>
         <site-id>2</site-id>
         <name>sample.com</name>
      </create>
   </site-alias>
</packet>

Response:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.7.0">
  <site-alias>
    <create>
      <result>
        <status>ok</status>
        <id>1</id>
      </result>
    </create>
  </site-alias>
</packet>
 

Leave your comments on this page

Leave your feedback or question on this documentation topic below. For technical assistance, contact your hosting service provider or submit a request to Plesk support. Suggest new features for Plesk here. Discuss general questions on the Plesk forum. All offtopic comments will be removed.