Post by AMI_Felix on Sept 5, 2023 7:49:30 GMT
Hi,
If partial error of PATCH return 202, which final Task State is better, "Completed" or "Exception"?
For example:
PATCH /redfish/v1/AccountService
Please help provide your opinion for the above example, if GET /redfish/v1/TaskService/Tasks/7 should be presented as "Completed" or "Exception".
Thanks,
Felix
If partial error of PATCH return 202, which final Task State is better, "Completed" or "Exception"?
For example:
PATCH /redfish/v1/AccountService
{
"LDAP": {
"RemoteRoleMapping": [
{
"LocalRole": "Administrator",
"RemoteGroup": "ldaprg1",
"RemoteUser": "ou=testgroup,dc=megarac,dc=qa"
},
{
"LocalRole": "Administrator",
"RemoteGroup": "ldaprg1",
"RemoteUser": "ou=testgroup,dc=megarac,dc=qa"
}
]
}
}
Return 202.{
"@odata.context": "/redfish/v1/$metadata#Task.Task",
"@odata.id": "/redfish/v1/TaskService/Tasks/7",
"@odata.type": "#Task.v1_4_2.Task",
"Description": "Task for AccountService LDAP",
"Id": "7",
"Messages": [
{
"@odata.type": "#Message.v1_0_8.Message",
"Message": "The value ldaprg1 for the property RemoteGroup is duplicated in the request body",
"MessageArgs": [
"ldaprg1",
"RemoteGroup"
],
"MessageId": "Ami.1.0.PropertyValueDuplicatedInRequestBody",
"RelatedProperties": [
"/LDAP/RemoteRoleMapping/1/RemoteGroup"
],
"Resolution": "Change the value of the property and resubmit the request.",
"Severity": "Warning"
}
],
"Name": "AccountService LDAP",
"TaskMonitor": "/redfish/v1/TaskService/TaskMonitors/7",
"TaskState": "New"
}
Please help provide your opinion for the above example, if GET /redfish/v1/TaskService/Tasks/7 should be presented as "Completed" or "Exception".
Thanks,
Felix