Summary:
List an object's associations.
URL:
http(s)://{server hostname}/api/objects/{swID}/associations?showEmpty=BOOL
Methods summary
- GET Method detail - Lists associations of the object.
GET Method details
Lists associations of the object.
This method accepts a “showEmpty” parameter, which controls whether empty associations should be listed. This method accepts one of two boolean parameters:
- one that equals "yes", "true", "y", "t" or "1". This is treated as 'true'.
- one that equals any other value, or the absence of a value. This is treated as 'false'.
Response:
The list of associations.
Examples:
INPUT
curl -u admin:admin https://localhost/api/objects/655/associations?showEmpty=yes&media=json
OUTPUT
{
"items": [
"AdaptorUnits",
"Annotation",
"ChassisList",
"ComputeBlades",
"DeviceMIBPolls",
"FabricExtenders",
"FanModules",
"Fans",
"HostEthernets",
"IPSLABaseCreators",
"IPSLABasePollers",
"IpAddresses",
"LocalDisks",
...removed for brevity...
"uDComponents19", "uDComponents20"
],
"count": 60}
INPUT
curl -u admin:admin https://localhost/api/objects/655/associations?showEmpty=yes&media=xml
OUTPUT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<items count="60">
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">AdaptorUnits</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">Annotation</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">ChassisList</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">ComputeBlades</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">DeviceMIBPolls</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">FabricExtenders</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">FanModules</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">Fans</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">HostEthernets</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">IPSLABaseCreators</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">IPSLABasePollers</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">IpAddresses</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">LocalDisks</item>
...removed for brevity...
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">uDComponents19</item>
<item xsi:type="xs:string" xmlns:xs="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">uDComponents20</item>
</items>
Comments
0 comments
Please sign in to leave a comment.