由于新用户无法上传附件,现把LogServices.json内容贴出来:
{
“Resources”: [
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices”,
“Interfaces”: [
{
“Type”: “GET”,
“ResourceExist”: {
“${Statements/IsValidManagersId()}”: true
},
“RspBody”: {
“@odata.context”: “/redfish/v1/$metadata#LogServiceCollection.LogServiceCollection”,
“@odata.id”: “/redfish/v1/Managers/${Uri/managerid}/LogServices”,
“@odata.type”: “#LogServiceCollection1.LogServiceCollection1”,
“Name”: “LogService Collection”,
“Members@odata.count”: “${Statements/MembersCount()}”,
“Members”: “${Statements/Members()}”,
“Actions”: {
“Oem”: {
“{{OemIdentifier}}”: {
“#LogService.CollectNPULog”: {
“target”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Actions/Oem/{{Oe@Redfish.ActionInfoIdentifier}}/CollectNPULog”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectNPULogActionInfo”
},
“#LogService.CollectNPULog.Status”: {
“target”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Actions/Oem/{@Redfish.ActionInfoOemIdentifier}}/CollectNPULog.Status”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectNPULog.StatusActionInfo”
},
“#LogService.DownloadNPULog”: {
“target”: “/redfish/v1/Managers/${Uri/managerid}/LogServic@Redfish.ActionInfos/Actions/Oem/{{OemIdentifier}}/DownloadNPULog”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/DownloadNPULogActionInfo”
},
“#LogService.CollectAllLog”: {
“target”: “/redfish/v1/Managers/${Uri/managerid@Redfish.ActionInfo/LogServices/Actions/Oem/{{OemIdentifier}}/CollectAllLog”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectAllLogActionInfo”
},
“#LogService.CollectAllLog.Status”: {
“target”: “/redfish/v1/Managers/${Uri/manage@Redfish.ActionInfoid}/LogServices/Actions/Oem/{{OemIdentifier}}/CollectAllLog.Status”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectAllLog.StatusActionInfo”
},
“#LogService.DownloadAllLog”: {
“target”: “/redfish/v1/Manag@Redfish.ActionInfors/${Uri/managerid}/LogServices/Actions/Oem/{{OemIdentifier}}/DownloadAllLog”,
“@Redfish.ActionInfo”: “/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/DownloadAllLogActionInfo”
}
}
}
}
},
“Statements”: {
“MembersCount”: {
“Input”: “${ProcessingFlow[1]/Destination/Members}”,
“Steps”: [
{
“Type”: “Count”
}
]
},
“Members”: {
“Input”: “${ProcessingFlow[1]/Destination/Members}”,
“Steps”: [
{
“Type”: “Prefix-Trim”,
“Formula”: “/bmc/kepler/”
},
{
“T@odata.idpe”: “Prefix-Add”,
“Formula”: “/redfish/v1/”
},
{
“Type”: “L-Pair”,
“Formula”: “@odata.id”
}
]
},
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
}
},
“ProcessingFlow”: [
{
“Type”: “List”,
“Path”: “/bmc/kepler/Managers/1/LogServices”,
“Destination”: {
“Members”: “Members”
}
}
]
}
]
},
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/CollectNPULogActionInfo”,
“Interfaces”: [
{
“Type”: “GET@odata.context,
“ResourceExist”: {
“${Statements/IsValidManagersI@odata.id()}”: true
},
“RspBody”: {
“@odata.context”: “/redfish/v1/$metadata#ActionInfo.ActionInfo”,
“@odata.id”: “/redfish/v1/Manage@odata.types/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectNPULogActionInfo”,
“@odata.type”: “#ActionInfo.v1_0_0.ActionInfo”,
“Id”: “CollectNPULogActionInfo”,
“Name”: “Collect NPU Log Action Info”,
“Parameters”: ,
“Oem”: {}
},
“Statements”: {
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
}
}
}
]
},
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices/Actions/Oem/{{OemIdentifier}}/CollectNPULog”,
“Interfaces”: [
{
“Type”: “POST”,
“ResourceExist”: {
“${Statements/IsValidManagersId()}”: true,
“${Statements/CollectNPULog()}”: true
},
“ReqBody”: {
“Type”: “object”,
“Required”: true,
“Properties”: {}
},
“Statements”: {
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
},
“CollectNPULog”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “logservices.collect_npu_log()”
}
]
}
}
}
]
},
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/CollectNPULog.StatusActionInfo”,
“Interfaces”: [
{
“T@odata.contextpe”: “GET”,
“ResourceExist”: {
“${Statements/IsVali@odata.idManagersId()}”: true
},
“RspBody”: {
“@odata.context”: “/redfish/v1/$metadata#ActionInfo.ActionInfo”,
“@odata.id”: “/redfish/v1/Man@odata.typegers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectNPULog.StatusActionInfo”,
“@odata.type”: “#ActionInfo.v1_0_0.ActionInfo”,
“Id”: “CollectNPULog.StatusActionInfo”,
“Name”: “Collect NPU Log Status Action Info”,
“Parameters”: ,
“Oem”: {}
},
“Statements”: {
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
}
}
}
]
},
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices/Actions/Oem/{{OemIdentifier}}/CollectNPULog.Status”,
“Interfaces”: [
{
“Type”: “GET”,
“ResourceExist”: {
“${Statements/IsValidManagersId()}”: true
},
“RspBody”: {
“State”: “${Statements/State()}”,
“Progress”: “${Statements/Progress()}”
},
“Statements”: {
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
},
“State”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “logservices.collect_npu_log_state()”
}
]
},
“Progress”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “logservices.collect_npu_log_progress()”
}
]
}
}
}
]
},
{
“Uri”: “/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/DownloadNPULogActionInfo”,
“Interface@odata.context”: [
{
“Type”: “GET”,
“ResourceExist”: {
“${Stateme@odata.idts/IsValidManagersId()}”: true
},
“RspBody”: {
“@odata.context”: “/redfish/v1/$metadata#ActionInfo.ActionInfo”,
“@odata.id”: @odata.type/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/DownloadNPULogActionInfo”,
“@odata.type”: “#ActionInfo.v1_0_0.ActionInfo”,
“Id”: “DownloadNPULogActionInfo”,
“Name”: “Download NPU Log Action Info”,
“Parameters”: ,
“Oem”: {}
},
“Statements”: {
“IsValidManagersId”: {
“Steps”: [
{
“Type”: “Plugin”,
“Formula”: “utils.is_valid_managers_id(Uri.managerid)”
}
]
}
}
}
]
},
{
"Uri": "/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/CollectAllLogActionInfo",
"Interfaces": [
{
"Type": "GET",
"ResourceExist": {
"${Statements/IsValidManagersId()}": true
},
"Statements": {
"IsValidManagersId": {
"Steps": [
{
"Type": "Plugin",
"Formula": "utils.is_valid_managers_id(Uri.managerid)"
}
]
}
},
"RspBody": {
"@odata.context": "/redfish/v1/$metadata#ActionInfo.ActionInfo",
"@odata.id": "/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectAllLogActionInfo",
"@odata.type": "#ActionInfo.v1_0_0.ActionInfo",
"Id": "CollectAllLogActionInfo",
"Name": "Collect All Log Action Info",
"Parameters": [],
"Oem": {}
}
}
]
},
{
"Uri": "/redfish/v1/Managers/:managerid/LogServices/Actions/Oem/{{OemIdentifier}}/CollectAllLog",
"Interfaces": [
{
"Type": "POST",
"LockdownAllow": true,
"ResourceExist": {
"${Statements/IsValidManagersId()}": true,
"${Statements/CollectAllLog()}": true
},
"ReqBody": {
"Type": "object",
"Required": true,
"Properties": {}
},
"Statements": {
"IsValidManagersId": {
"Steps": [
{
"Type": "Plugin",
"Formula": "utils.is_valid_managers_id(Uri.managerid)"
}
]
},
"CollectAllLog": {
"Steps": [
{
"Type": "Plugin",
"Formula": "logservices.collect_all_log()"
}
]
}
}
}
]
},
{
"Uri": "/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/CollectAllLog.StatusActionInfo",
"Interfaces": [
{
"Type": "GET",
"ResourceExist": {
"${Statements/IsValidManagersId()}": true
},
"RspBody": {
"@odata.context": "/redfish/v1/$metadata#ActionInfo.ActionInfo",
"@odata.id": "/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/CollectAllLog.StatusActionInfo",
"@odata.type": "#ActionInfo.v1_0_0.ActionInfo",
"Id": "CollectAllLog.StatusActionInfo",
"Name": "Collect All Log Status Action Info",
"Parameters": [],
"Oem": {}
},
"Statements": {
"IsValidManagersId": {
"Steps": [
{
"Type": "Plugin",
"Formula": "utils.is_valid_managers_id(Uri.managerid)"
}
]
}
}
}
]
},
{
"Uri": "/redfish/v1/Managers/:managerid/LogServices/Actions/Oem/{{OemIdentifier}}/CollectAllLog.Status",
"Interfaces": [
{
"Type": "GET",
"ResourceExist": {
"${Statements/IsValidManagersId()}": true
},
"RspBody": {
"State": "${Statements/State()}",
"Progress": "${Statements/Progress()}"
},
"Statements": {
"IsValidManagersId": {
"Steps": [
{
"Type": "Plugin",
"Formula": "utils.is_valid_managers_id(Uri.managerid)"
}
]
},
"Progress": {
"Steps": [
{
"Type": "Plugin",
"Formula": "logservices.collect_all_log_progress()"
}
]
},
"State": {
"Steps": [
{
"Type": "Plugin",
"Formula": "logservices.collect_all_log_state()"
}
]
}
}
}
]
},
{
"Uri": "/redfish/v1/Managers/:managerid/LogServices/Oem/{{OemIdentifier}}/DownloadAllLogActionInfo",
"Interfaces": [
{
"Type": "GET",
"ResourceExist": {
"${Statements/IsValidManagersId()}": true
},
"RspBody": {
"@odata.context": "/redfish/v1/$metadata#ActionInfo.ActionInfo",
"@odata.id": "/redfish/v1/Managers/${Uri/managerid}/LogServices/Oem/{{OemIdentifier}}/DownloadAllLogActionInfo",
"@odata.type": "#ActionInfo.v1_0_1.ActionInfo",
"Id": "DownloadAllLogActionInfo",
"Name": "Download All Log Action Info",
"Parameters": [],
"Oem": {}
},
"Statements": {
"IsValidManagersId": {
"Steps": [
{
"Type": "Plugin",
"Formula": "utils.is_valid_managers_id(Uri.managerid)"
}
]
}
}
}
]
}
]
}