setUserSpaceRestriction (user)

Adds the user space restriction for a supplied user DN to a specified volume.

Request

<set>
   <volumeName/>
   <id/>
   <userName/>
   <quota/>
   <noQuota/>
   <fullyRestricted/>
</set>

Reply

<set>
   <result value="">
      <description/>
   </result>
</set>

Elements

volumeName

(Required) Specifies the volume's name to which to add a user space restriction.

id

Specifies the unique ID of the user. Either the user's ID or name must be specified.

userName

Specifies the DN of the user to add. Either the user's name or ID must be specified.

quota

(Required unless noQuota or fullyRestricted is specified) Specifies the quota for the specified user.

noQuota

(Required unless quota or fullyRestricted is specified) Specifies that the user has no limit and removes any existing restriction.

fullyRestricted

(Required unless quota or noQuota is specified) Specifies that the user is limited to no more space.

result

Specifies an error value or 0 (for no error).

description

Specifies a text description of the result.

Example

A userRequest packet to set space restrictions for a volume is as follows:

<userRequest>
      <set>
         <volumeName>MYVOL</volumeName>
         <userName>somebody.somedept.someorg</userName>
         <quota>1048576</quota>
      </set>
</userRequest>

A userReply packet to the set space restrictions command follows:

<userReply>
       <set>
          <result value="0">
               <description/>success</description>
            </result>
       </set>   
   <result value="0">           
      <description/>zOK</description>            
   </result>
</userReply>