|
Post by okashany on Sept 27, 2023 19:01:12 GMT
Hi, Is it considered acceptable to include this kind of instructions in the resolution field of a success message?
{
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The request completed successfully.",
"MessageArgs": [],
"MessageId": "Base.1.15.0.Success",
"MessageSeverity": "OK",
"Resolution": "Please add the following public key to ~/.ssh/authorized_keys on the remote server: <key_type> <public_key> <host_name>"
}
]
} Thanks, Orit
|
|
|
Post by jautor on Sept 27, 2023 19:09:58 GMT
I wouldn't recommend it. Having resolution text on an "OK" message is probably not appropriate - while you are providing information to the user that they need to perform some action, that action doesn't relate to the "Success" message. This would seem like a separate message to define and send, perhaps with those items defined as parameters. You can then deliver both messages as part of the ExtendedInfo.
Jeff
|
|
|
Post by okashany on Sept 28, 2023 19:53:22 GMT
Thanks. Is this better:
{ "@message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "Please add the following public key info to ~/.ssh/authorized_keys on the remote server", "MessageArgs": [ "<key_type> <public_key> <host_name>" ] }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.15.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] }
|
|
|
Post by ratagupt on Oct 3, 2023 5:18:27 GMT
Thanks. Is this better: { "@message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "Please add the following public key info to ~/.ssh/authorized_keys on the remote server", "MessageArgs": [ "<key_type> <public_key> <host_name>" ] }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The request completed successfully.", "MessageArgs": [], "MessageId": "Base.1.15.0.Success", "MessageSeverity": "OK", "Resolution": "None" } ] } Need to define the message in the registry as jautor mentioned { "@odata.type": "#Message.v1_1_1.Message", "Message": "Please add the following public key info to ~/.ssh/authorized_keys on the remote server", "MessageArgs": [ "<key_type> <public_key> <host_name>" ] }, I don't see Message ID here.
|
|