GetDeviceRegistration
This method is used to return the list of GetDeviceRegistration of Cisco Intersight created in HCL BigFix CLM.
Method Signature:
GetDeviceRegistration (async, callback, addlparam)
Sample Response:
{ "totalRecords": 1, "records": [ { "moid": "xxxxx",
"entityId": "CICODR-A109F2DD-1AB2-4760-BF23-6DC768D613D8",
"objectType": "asset.DeviceRegistration", "classId": "asset.DeviceRegistration",
"claimedByUser": { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "iam.User", "link": "https://<enter URL>" }, "claimedByUserName": "abc@hcl.com",
"clusterMembers": [ { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "asset.ClusterMember", "link": "https://<enter URL>" }, { "ClassId": "mo.MoRef",
"Moid": "xxxxx", "ObjectType": "asset.ClusterMember",
"link": "https://<enter URL>" }, { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "asset.ClusterMember", "link": "https://<enter URL>" }, { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "asset.ClusterMember", "link": "https://<enter URL>" } ], "connectionReason": "",
"connectionStatus": "Connected", "deviceClaim": { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "asset.DeviceClaim", "link": "https://<enter URL> " }, "deviceConfiguration": { "ClassId": "mo.MoRef", "Moid": "xxxxx", "ObjectType": "asset.DeviceConfiguration", "link": "https://<enter URL>" }, "deviceHostname": [ "NOICLD-HX" ], "deviceExternalIpAddress": [ " xxx.xx.x.xx " ], "deviceIpAddress": [ " xxx.xx.x.xx " ], "pid": [ "HX220C-M5SX" ],
"platformType": "HX",
"vendor": " HyperFlex StorageController 3.0.1i", "device": "", "tags": "", "organizations": [] } ]}
Parameter Details:
| Parameter Name | Type | Mandatory | Description |
|---|---|---|---|
| async | Boolean | N |
In case it’s False: Function will be called in synchronous mode. i.e., Current execution will wait for method execution to complete In case it’s True: Function will be called asynchronously. Execution will not wait for method execution completion. It will jump to next statement. |
| Callback | Function | N | User can pass function name that can be executed on completion of Parent function call. |
| Addlparam | Object | N |
Addlparam is used for filtering and sorting the records. It contains 3 properties filter/sortby/sortorder. To Filter: To filter records based on column name received from output. e.g., filter="keyname='keyvalue'" To Sort By: To sort the data based on column name. e.g., sortby="keyname" To Sort Order: To define sorting order either ASC (Ascending) or DESC (descending). e.g., sortorder="ASC” |