Get Quota operation
The Get Quota operation displays the properties of a quota specification defined in the directory.
The following table describes the elements for the <items> XML element and adapter request for the operation.
Elements for the <items> XML for the operation
Input element | Description | Required |
---|---|---|
<target> | Specifies the target for the request | No |
<host> | Specifies the host name or IP address of the remote computer | No |
<user-name> | Specifies the user name for remote host authentication | No |
<password> | Specifies the password that corresponds to the user name | No |
<commands> | Indicates the beginning of the <commands> element, which contains the individual <command> elements | Yes |
<command> | Indicates the beginning of a <command> element, which contains the elements that specify the operation to execute and its parameters | Yes |
<active-directory-command> | Specifies the operation to execute | Yes |
<object-class> | Specifies the type of object on which to perform the operation | Yes |
<object-distinguished-name> | Specifies the distinguished name of the quota that you want to retrieve For example, CN=PUNBNADV21_TestUser,CN=NTDS Quotas,DC=punbnadv21,DC=local | Yes |
<parameters> | Contains the element list for the operation | Yes |
<quota-limit> | Displays the quota limits for the specified quotas An unlimited quota appears as "-1". | Yes |
<distinguished-name> | Specifies the distinguished name of the quota specification that you want to retrieve | No |
<description> | Specifies a description for the quota specification that you want to retrieve | No |
<server> | Specifies the remote server for the connection | Conditional |
<domain> | Specifies the remote domain for the connection | Conditional |
<user-name> | Specifies the logon user name for the remote server | Conditional |
<password> | Specifies the password associated with the user name | Conditional |
The following figure shows a sample adapter request for the operation.
Adapter request for the operation
<active-directory-request>
<commands>
<command>
<active-directory-command>Get Quota</active-directory-command>
<object-class>Quota</object-class>
<object-distinguished-name>CN=jeena,CN=NTDS Quotas,DC=punbnadv21,DC=local</object-distinguished-name>
<parameters>
<quota-limit />
<description />
<distinguished-name />
</parameters>
</command>
</commands>
</active-directory-request>
</request-data>
The following figure shows a sample adapter response for the operation.
Sample adapter response for the operation
<metadata>
<status>success</status>
</metadata>
<target-output host="vw-pun-bna-dv21.bmc.com">
<metadata>
<os-id>Windows Server 2008</os-id>
<os-version>6.3.9600</os-version>
<status>success</status>
</metadata>
<commands-output>
<command-output>
<metadata>
<command>dsget quota "\"CN=jeena,CN=NTDS Quotas,DC=punbnadv21,DC=local\"" -qlimit -desc -dn </command>
<line-count>7</line-count>
<execution-milliseconds>52984</execution-milliseconds>
<exit-code>0</exit-code>
<status>success</status>
</metadata>
<output>
<line index="1">Copyright 2010 BMC Software Ltd, Version: 1.5 </line>
<line index="2">Connecting to remote service...</line>
<line index="3">Connected to remote host.</line>
<line index="4"> dn desc qlimit </line>
<line index="5"> CN=jeena,CN=NTDS Quotas,DC=punbnadv21,DC=local NewQuotya 10 </line>
<line index="6">dsget succeeded</line>
<line index="7">Remote application exited with code: 0 </line>
</output>
</command-output>
</commands-output>
</target-output>
</active-directory-response>