Untitled conversation
- User
{ "@Redfish.Settings": { "@odata.context": "/redfish/v1/metadata#Settings.Settings", "@odata.type": "#Settings.v1_3_5.Settings", "SettingsObject": { "@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1/Settings" }, "SupportedApplyTimes": [ "Immediate", "AtMaintenanceWindowStart" ] }, "@odata.context": "/redfish/v1/metadata#DellAttributes.DellAttributes", "@odata.id": "/redfish/v1/Managers/iDRAC.Embedded.1/Oem/Dell/DellAttributes/iDRAC.Embedded.1", "@odata.type": "#DellAttributes.v1_0_0.DellAttributes", "AttributeRegistry": "ManagerAttributeRegistry.v1_0_0", "Attributes": { "SupportAssist.1.DefaultProtocolPort": 0, "SupportAssist.1.HostOSProxyPort": 1, "CurrentNIC.1.DedicatedNICScanTime": 5, "CurrentNIC.1.MTU": 1500, "CurrentNIC.1.NumberOfLOM": 4, "CurrentNIC.1.SharedNICScanTime": 30, "CurrentNIC.1.VLanID": 1, "CurrentNIC.1.VLanPriority": 0 }} how to get concrete Attribute in python
- Assistant
You can retrieve specific attributes from the JSON response using Python by loading the response as a dictionary and accessing the desired attribute using its key. Here's an example of how you can get the value of the attribute "CurrentNIC.1.MTU" from the provided JSON response:
python