Adding Delegation Rule

Use the add-delegation-rule operation to add a delegation rule.

In this chapter:

Request Packet Structure

Response Packet Structure

Samples

 

Request Packet Structure

A request XML packet adding a delegation rule includes the add-delegation-rule operation node:

<packet>
<sso>
   <add-delegation-rule>
...
   </add-delegation-rule>
</sso>
</packet>

 

The add-delegation-rule node is presented by type SSOAddDelegationRuleInput (sso.xsd), and its graphical representation is as follows:

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.

 

Response Packet Structure

The add-delegation-rule node of the output XML packet is presented by type SSOAddDelegationRuleOutput (sso.xsd) and structured as follows:

 

 

Samples

The packet that delegates resources of Plesk user MyUser to user MyExample registered at the SP specified by ID fvsrf4564asdsRdh4 looks as follows:

<packet version="1.5.2.0">
<sso>
   <add-delegation-rule>
		<sp-id>fvsrf4564asdsRdh4</sp-id>
		<sp-login>MyUser</sp-login>
		<plesk-login>MyExample</plesk-login>
   </add-delegation-rule>
</sso>
</packet>

Response:

<packet version="1.5.2.0">
<sso>
   <add-delegation-rule>
      <result>
          <status>ok</status>
      </result>
   </add-delegation-rule>
</sso>
</packet>