Skip to content

Latest commit

 

History

History
646 lines (634 loc) · 26.4 KB

File metadata and controls

646 lines (634 loc) · 26.4 KB

Query the API for Physical Compute Inventory

Now that you are authenticated, let's use the SDK to query for the number of physical compute items in inventory. You first pass api_client variable defined in the previous step to intersight.api.compute_api.ComputeApi and store the result in a new variable named api_instance as shown below.

# Get compute class instance
api_instance = intersight.api.compute_api.ComputeApi(api_client)

Make the Query and Add a Filter that Retrieves Only UCS X-Series

In the next line of code, you will query the API with a filter so that we only ask for UCS X-Series physical compute nodes and store the returned value in a variable named compute_inventory. If you remove the filter='contains(Model,\'UCSX\')' argument, everything in inventory is returned.

compute_inventory = api_instance.get_compute_physical_summary_list(filter='contains(Model,\'UCSX\')')

See How Many Physical Compute Items Were Returned

The object returned by the API call contains a list of attributes and methods you see when using the dir() function.

dir(compute_inventory)

Click here to see output

['__class__',
 '__contains__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattr__',
 '__getattribute__',
 '__getitem__',
 '__gt__',
 '__hash__',
 '__init__',
 '__init_subclass__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__setitem__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__unset_attribute_value__',
 '__weakref__',
 '_additional_properties_model_instances',
 '_check_type',
 '_composed_instances',
 '_composed_schemas',
 '_configuration',
 '_data_store',
 '_nullable',
 '_path_to_item',
 '_spec_property_naming',
 '_var_name_to_model_instances',
 '_visited_composed_classes',
 'additional_properties_type',
 'allowed_values',
 'attribute_map',
 'discriminator',
 'get',
 'openapi_types',
 'required_properties',
 'set_attribute',
 'to_dict',
 'to_str',
 'validations']

One of the attributes you see is a list named results. If you pass that to the len() BIF (built in function), it returns the number of items in the list which tells you the number of UCS X-Series in inventory.

len(compute_inventory.results)
Click here to see output

6

Show Everything Returned by the Query

Printing compute_inventory.results shows a rich set of information returned about physical compute items in inventory.

compute_inventory.results
Click here to see output

{'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 4,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
                 'moid': '60e228f66176752d37a47da8',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 512,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 140.8,
  'create_time': datetime.datetime(2021, 7, 4, 21, 35, 4, 223000, tzinfo=tzutc()),
  'device_mo_id': '60e229446f72612d33cafe2f',
  'dn': '/redfish/v1/Systems/FCH243974X1',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [{'address': '172.25.180.18',
                        'category': 'Equipment',
                        'class_id': 'compute.IpAddress',
                        'default_gateway': '172.25.180.1',
                        'dn': '',
                        'http_port': 80,
                        'https_port': 443,
                        'kvm_port': 2068,
                        'kvm_vlan': 180,
                        'name': 'Inband',
                        'object_type': 'compute.IpAddress',
                        'subnet': '255.255.255.0',
                        'type': 'MgmtInterface'}],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '172.25.180.18',
  'mod_time': datetime.datetime(2021, 9, 24, 23, 2, 27, 928000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '60e229886176752d37a52a77',
  'name': 'B26-Matt-FI-1-1',
  'num_adaptors': 1,
  'num_cpu_cores': 64,
  'num_cpu_cores_enabled': 64,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 128,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '60e228bb6f72612d33caea33',
             '60e229446f72612d33cafe2f'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
             'moid': '60e228f66176752d37a47da8',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/60e229446f72612d33cafe2f',
                        'moid': '60e229446f72612d33cafe2f',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH243974X1',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 1,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Premier'}],
  'topology_scan_status': '',
  'total_memory': 524288,
  'user_label': '',
  'uuid': 'DCB64CE6-67D3-46BD-8EB2-E4A079EB50D1',
  'vendor': 'Cisco Systems Inc'},
 {'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 4,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
                 'moid': '60e228f66176752d37a47da8',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 1152,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 145.59999,
  'create_time': datetime.datetime(2021, 7, 4, 21, 35, 4, 728000, tzinfo=tzutc()),
  'device_mo_id': '60e229586f72612d33cb012f',
  'dn': '/redfish/v1/Systems/FCH243974UR',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [{'address': '172.25.180.19',
                        'category': 'Equipment',
                        'class_id': 'compute.IpAddress',
                        'default_gateway': '172.25.180.1',
                        'dn': '',
                        'http_port': 80,
                        'https_port': 443,
                        'kvm_port': 2068,
                        'kvm_vlan': 180,
                        'name': 'Inband',
                        'object_type': 'compute.IpAddress',
                        'subnet': '255.255.255.0',
                        'type': 'MgmtInterface'}],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '172.25.180.19',
  'mod_time': datetime.datetime(2021, 9, 24, 23, 15, 41, 532000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '60e229886176752d37a52add',
  'name': 'B26-Matt-FI-1-3',
  'num_adaptors': 1,
  'num_cpu_cores': 56,
  'num_cpu_cores_enabled': 56,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 112,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '60e228bb6f72612d33caea33',
             '60e229586f72612d33cb012f'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
             'moid': '60e228f66176752d37a47da8',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/60e229586f72612d33cb012f',
                        'moid': '60e229586f72612d33cb012f',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH243974UR',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 3,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Essential'}],
  'topology_scan_status': '',
  'total_memory': 2097152,
  'user_label': '',
  'uuid': 'A0EF6F57-8699-4FA6-88B2-0DC21475DFDE',
  'vendor': 'Cisco Systems Inc'},
 {'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 4,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
                 'moid': '60e228f66176752d37a47da8',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 512,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 145.59999,
  'create_time': datetime.datetime(2021, 7, 4, 21, 35, 5, 23000, tzinfo=tzutc()),
  'device_mo_id': '60e2295b6f72612d33cb018d',
  'dn': '/redfish/v1/Systems/FCH243974V0',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [{'address': '172.25.180.16',
                        'category': 'Equipment',
                        'class_id': 'compute.IpAddress',
                        'default_gateway': '172.25.180.1',
                        'dn': '',
                        'http_port': 80,
                        'https_port': 443,
                        'kvm_port': 2068,
                        'kvm_vlan': 180,
                        'name': 'Inband',
                        'object_type': 'compute.IpAddress',
                        'subnet': '255.255.255.0',
                        'type': 'MgmtInterface'}],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '172.25.180.16',
  'mod_time': datetime.datetime(2021, 9, 24, 22, 55, 55, 509000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '60e229896176752d37a52b25',
  'name': 'B26-Matt-FI-1-2',
  'num_adaptors': 1,
  'num_cpu_cores': 56,
  'num_cpu_cores_enabled': 56,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 112,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '60e228bb6f72612d33caea33',
             '60e2295b6f72612d33cb018d'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/60e228f66176752d37a47da8',
             'moid': '60e228f66176752d37a47da8',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/60e2295b6f72612d33cb018d',
                        'moid': '60e2295b6f72612d33cb018d',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH243974V0',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 2,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Essential'}],
  'topology_scan_status': '',
  'total_memory': 524288,
  'user_label': '',
  'uuid': 'E2E16A6A-38AF-465E-8D93-3405EAFBE400',
  'vendor': 'Cisco Systems Inc'},
 {'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 0,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
                 'moid': '614e4b1c76752d32333bbf06',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 512,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 108.0,
  'create_time': datetime.datetime(2021, 9, 24, 22, 14, 22, 418000, tzinfo=tzutc()),
  'device_mo_id': '614e4db46f72612d339b014a',
  'dn': '/redfish/v1/Systems/FCH250671LQ',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '',
  'mod_time': datetime.datetime(2021, 9, 24, 23, 19, 18, 462000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '614e4dbe76752d32333c20b7',
  'name': 'sg-gw-cc7-1-3',
  'num_adaptors': 1,
  'num_cpu_cores': 36,
  'num_cpu_cores_enabled': 36,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 72,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '6148fb686f72612d33110fa2',
             '614e4db46f72612d339b014a'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
             'moid': '614e4b1c76752d32333bbf06',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/614e4db46f72612d339b014a',
                        'moid': '614e4db46f72612d339b014a',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH250671LQ',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 3,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Essential'}],
  'topology_scan_status': '',
  'total_memory': 524288,
  'user_label': '',
  'uuid': '98A9D387-7948-48EC-A1F6-D05152CF2C07',
  'vendor': 'Cisco Systems Inc'},
 {'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 0,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
                 'moid': '614e4b1c76752d32333bbf06',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 512,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 145.59999,
  'create_time': datetime.datetime(2021, 9, 24, 22, 14, 50, 283000, tzinfo=tzutc()),
  'device_mo_id': '614e4dd26f72612d339b0618',
  'dn': '/redfish/v1/Systems/FCH243974YF',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '',
  'mod_time': datetime.datetime(2021, 9, 24, 23, 19, 41, 482000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '614e4dda76752d32333c2501',
  'name': 'sg-gw-cc7-1-2',
  'num_adaptors': 1,
  'num_cpu_cores': 56,
  'num_cpu_cores_enabled': 56,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 112,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '6148fb686f72612d33110fa2',
             '614e4dd26f72612d339b0618'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
             'moid': '614e4b1c76752d32333bbf06',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/614e4dd26f72612d339b0618',
                        'moid': '614e4dd26f72612d339b0618',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH243974YF',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 2,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Essential'}],
  'topology_scan_status': '',
  'total_memory': 524288,
  'user_label': '',
  'uuid': '7E1CE309-05CC-4DF5-B4AB-EF2ECAE08940',
  'vendor': 'Cisco Systems Inc'},
 {'account_moid': '596cc79e5d91b400010d15ad',
  'admin_power_state': '',
  'alarm_summary': {'class_id': 'compute.AlarmSummary',
                    'critical': 0,
                    'object_type': 'compute.AlarmSummary',
                    'warning': 0},
  'ancestors': [{'class_id': 'mo.MoRef',
                 'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
                 'moid': '614e4b1c76752d32333bbf06',
                 'object_type': 'equipment.Chassis'}],
  'asset_tag': '',
  'available_memory': 320,
  'bios_post_complete': True,
  'chassis_id': '1',
  'class_id': 'compute.PhysicalSummary',
  'connection_status': '',
  'cpu_capacity': 145.59999,
  'create_time': datetime.datetime(2021, 9, 24, 22, 14, 53, 167000, tzinfo=tzutc()),
  'device_mo_id': '614e4dd46f72612d339b0652',
  'dn': '/redfish/v1/Systems/FCH243974VG',
  'domain_group_moid': '5b2541877a7662743465cc98',
  'fault_summary': 0,
  'firmware': '5.0(1b)',
  'inventory_device_info': None,
  'ipv4_address': '127.0.0.1',
  'kvm_ip_addresses': [],
  'management_mode': 'Intersight',
  'memory_speed': '3200',
  'mgmt_ip_address': '',
  'mod_time': datetime.datetime(2021, 9, 24, 23, 18, 30, 373000, tzinfo=tzutc()),
  'model': 'UCSX-210C-M6',
  'moid': '614e4ddd76752d32333c259d',
  'name': 'sg-gw-cc7-1-1',
  'num_adaptors': 1,
  'num_cpu_cores': 56,
  'num_cpu_cores_enabled': 56,
  'num_cpus': 2,
  'num_eth_host_interfaces': 0,
  'num_fc_host_interfaces': 0,
  'num_threads': 112,
  'object_type': 'compute.PhysicalSummary',
  'oper_power_state': 'on',
  'oper_reason': [],
  'oper_state': '',
  'operability': '',
  'owners': ['596cc79e5d91b400010d15ad',
             '6148fb686f72612d33110fa2',
             '614e4dd46f72612d339b0652'],
  'parent': {'class_id': 'mo.MoRef',
             'link': 'https://www.intersight.com/api/v1/equipment/Chasses/614e4b1c76752d32333bbf06',
             'moid': '614e4b1c76752d32333bbf06',
             'object_type': 'equipment.Chassis'},
  'permission_resources': [{'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5f7b3bcf6972652d33acb4d4',
                            'moid': '5f7b3bcf6972652d33acb4d4',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5dde9f116972652d33539d39',
                            'moid': '5dde9f116972652d33539d39',
                            'object_type': 'organization.Organization'},
                           {'class_id': 'mo.MoRef',
                            'link': 'https://www.intersight.com/api/v1/organization/Organizations/5ee0a9966972652d33e92240',
                            'moid': '5ee0a9966972652d33e92240',
                            'object_type': 'organization.Organization'}],
  'platform_type': 'IMCBlade',
  'presence': 'equipped',
  'registered_device': {'class_id': 'mo.MoRef',
                        'link': 'https://www.intersight.com/api/v1/asset/DeviceRegistrations/614e4dd46f72612d339b0652',
                        'moid': '614e4dd46f72612d339b0652',
                        'object_type': 'asset.DeviceRegistration'},
  'revision': '',
  'rn': '',
  'scaled_mode': '',
  'serial': 'FCH243974VG',
  'server_id': 0,
  'service_profile': '',
  'shared_scope': '',
  'slot_id': 1,
  'source_object_type': 'compute.Blade',
  'tags': [{'key': 'Intersight.LicenseTier', 'value': 'Essential'}],
  'topology_scan_status': '',
  'total_memory': 524288,
  'user_label': '',
  'uuid': '36DAC4C5-6096-4AF6-AFCD-D10086FD062E',
  'vendor': 'Cisco Systems Inc'}]

Next Step: Bringing it all together