The set operation of the site-alias
operator enables you to update the information about the ICP permit status and the ID of the assigned ICP permit for one or more domain aliases.
A request XML packet changing the site alias settings in the Plesk database includes the set operation node:
<packet>
<site-alias>
<set>...</set>
</site-alias>
</packet>
For more information about the set node, including its graphical representation and the descriptions and properties of dependent nodes, click here.
The structure of the set node of the response packet is described here.
The following packet grants the "ICP permit approved" status and assign the ICP permit "123456789" to the domain alias sample.com:
<packet>
<site-alias>
<set>
<filter>
<name>sample.com</name>
</filter>
<settings>
<pref>
<icp-status>true</icp-status>
<icp-permit>123456789</icp-permit>
</pref>
</settings>
</set>
</site-alias>
</packet>
Response:
<packet>
<site-alias>
<set>
<result>
<status>ok</status>
<filter-id>sample.com</filter-id>
<id>1</id>
</result>
</set>
</site-alias>
</packet>