Post by AMI_Felix on Dec 29, 2021 7:12:19 GMT
Hi,
According "LogEntry.v1_4_3.json", the longDescription of "OriginOfCondition" mention: "This property shall contain a link to the Resource that caused the log entry."
"OriginOfCondition": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef",
"description": "The URI of the Resource that caused the log entry.",
"longDescription": "This property shall contain a link to the Resource that caused the log entry.",
"readonly": true
}
And refer "odata.4.0.0.json", the longDescription of id property also mention: "The value of this property shall be the unique identifier for the resource and it shall be of the form defined in the Redfish specification."
"id": {
"type": "string",
"format": "uri",
"readonly": true,
"description": "The unique identifier for a resource.",
"longDescription": "The value of this property shall be the unique identifier for the resource and it shall be of the form defined in the Redfish specification."
},
"idRef": {
"type": "object",
"properties": {
"@odata.id": {
"$ref": "#/definitions/id"
}
},
"description": "A reference to a resource.",
"longDescription": "The value of this property shall be used for references to a resource."
},
When I POST /redfish/v1/AccountService/Accounts to create account, whether the "OriginOfCondition" of Links in EventLog entries should added id at the end on the uri(/redfish/v1/AccountService/Accounts/5) or like( /redfish/v1/AccountService/Accounts)?
"OriginOfCondition": {
"@odata.id":"/redfish/v1/AccountService/Accounts/5"
}
or
"OriginOfCondition": {
"@odata.id":"/redfish/v1/AccountService/Accounts"
}
Thanks.
According "LogEntry.v1_4_3.json", the longDescription of "OriginOfCondition" mention: "This property shall contain a link to the Resource that caused the log entry."
"OriginOfCondition": {
"$ref": "http://redfish.dmtf.org/schemas/v1/odata-v4.json#/definitions/idRef",
"description": "The URI of the Resource that caused the log entry.",
"longDescription": "This property shall contain a link to the Resource that caused the log entry.",
"readonly": true
}
And refer "odata.4.0.0.json", the longDescription of id property also mention: "The value of this property shall be the unique identifier for the resource and it shall be of the form defined in the Redfish specification."
"id": {
"type": "string",
"format": "uri",
"readonly": true,
"description": "The unique identifier for a resource.",
"longDescription": "The value of this property shall be the unique identifier for the resource and it shall be of the form defined in the Redfish specification."
},
"idRef": {
"type": "object",
"properties": {
"@odata.id": {
"$ref": "#/definitions/id"
}
},
"description": "A reference to a resource.",
"longDescription": "The value of this property shall be used for references to a resource."
},
When I POST /redfish/v1/AccountService/Accounts to create account, whether the "OriginOfCondition" of Links in EventLog entries should added id at the end on the uri(/redfish/v1/AccountService/Accounts/5) or like( /redfish/v1/AccountService/Accounts)?
"OriginOfCondition": {
"@odata.id":"/redfish/v1/AccountService/Accounts/5"
}
or
"OriginOfCondition": {
"@odata.id":"/redfish/v1/AccountService/Accounts"
}
Thanks.