Returns a list of Resource Attribute Assignments.
Required Information |
Name |
Description |
action |
adminattributeassign |
operation |
list |
format |
The format to return results in. Acceptable values:
- xml Results are returned in XML format.
- json Results are returned in JSON format.
|
Optional Information |
Name |
Description |
target |
Specific target id to report for, rather than all targets of the same type. If specified then type must be specified as well. |
type |
Specific resource (like assets or inspections) type id to report for, rather than all resource types. Available Type Ids:
|
Returned information
DTD
<!ELEMENT attributeassignlist (assignment*) >
<!ATTLIST attributeassignlist ver CDATA #REQUIRED>
<!ELEMENT assignment (rtypeid, aid, rid, endpoint) >
<!ATTLIST assignment id CDATA #REQUIRED>
<!ELEMENT rtypeid (#PCDATA)>
<!ELEMENT aid (#PCDATA)>
<!ELEMENT rid (#PCDATA)>
<!ELEMENT endpoint (#PCDATA)>
Reply Data |
Name |
Description |
assignment id |
The attribute assignment id. |
rtypeid |
The resource type id. |
aid |
The attribute id. |
rid |
The resource id. |
endpoint |
The resource attribute assignment end point - boolean. |
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=adminattributeassign&operation=list&format=xml&type=1
Example Success Reply XML
<?xml version="1.0"?>
<attributeassignlist ver="1">
<assignment id="3">
<rtypeid>1</rtypeid>
<aid>5</aid>
<rid>4</rid>
<endpoint>false</endpoint>
</assignment>
</attributeassignlist>