Example: Get Network Adapters for a Single Computer

Use the CAM REST API to get data about network adapters for a single computer.

                            http://{your-server}/cam/api/v1/hardware/computers/{id}/networkadapters
                        
To get the ID for a computer, first use this request:
http://{your-server}/cam/api/v1/hardware/computers

Filter the List of Network Adapters

Use filters to limit the list of items returned.

For example, use the following request to limit the network adapters for computer ID 337 to those where Dynamic Host Configuration Protocol (DHCP) is enabled:

                            http://{your-server}/cam/api/v1/hardware/computers/337/networkadapters?filter=dhcpEnabled
                        

Shape the List of Network Adapters

Add fields to your request to limit the data returned for each item in the list.

For example, use the following request to limit the data returned to the fields specified:

                                http://{your-server}/cam/api/v1/hardware/computers/337/networkadapters?fields=name, description, ipAddress, adapterType, dhcpEnabled