How to get the IP (and other attributes) of an Asset (CI) using CMDB API ?

How to get the IP (and other attributes) of an Asset (CI) using CMDB API ?

Hello.

I'm trying to use the CMDB API to get the IP address of the CI's present in the CMDB.
But I can't get the the CI details API endpoint to return any extra attributes. The most I can get it to return is:

CI Name
CI Type
Site
Description
Acquisition Date
Warranty Expiry Date
Expiry Date
Asset Tag
Org Serial Number
Barcode

The endpoint I'm using is:

/api/cmdb/ci/

And the XML i'm sending is:

<?xml version="1.0" encoding="UTF-8"?>\
                                <API version="1.0">\
                                        <citype>\
                                            <name>Workstation</name>\
                                            <criterias>\
                                                <criteria>\
                                                        <parameter>\
                                                            <name compOperator="IS">CI Name</name>\
                                                            <value>CI Name</value>\
                                                        </parameter>\
                                                    </criteria>\
                                                </criterias>\
                                            <returnFields>\
                                            </returnFields>\
                                        </citype>\
                                </API>

I also tried to put <name>*</name> in returnFields as the documentation says but that returns an error saying wrong CII specified.

Is this possible through the API ? Anyone has any documentation or example for this ?

Thank you,
Ricardo Ferreira

                  New to ADSelfService Plus?