PowerStore:使用 REST API 由空字符串修改的电子邮件地址应失败,但返回成功。
Resumen: 尝试使用 REST API 修改具有空字符串的email_notify_destination对象中的电子邮件地址应失败,但返回成功。
Este artículo se aplica a
Este artículo no se aplica a
Este artículo no está vinculado a ningún producto específico.
No se identifican todas las versiones del producto en este artículo.
Síntomas
将email_notify_destination修改为空字符串将返回成功。用户将假定电子邮件地址已成功删除。
示例如下所示:
示例如下所示:
POST https://10.229.xx.xx:443/api/rest/email_notify_destination
{
"email_address": "example@emc.com",
"notify_critical": true,
"notify_major": false,
"notify_minor": true,
"notify_info": true
}
GET https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25?select=*
200
{
"id": "eb028fe4-6c75-42e2-9aff-3d65d8dfbb25",
"email_address": "example@emc.com",
"notify_critical": true,
"notify_major": false,
"notify_minor": true,
"notify_info": true
}
PATCH https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25
{"email_address": ""}
==>
204 此处的“email_address”与修补程序之前相同:
GET https://10.229.xx.xx:443/api/rest/email_notify_destination/eb028fe4-6c75-42e2-9aff-3d65d8dfbb25?select=*
200
{
"id": "204b3978-0b3a-4c6e-a2bf-4b716502dd71",
"email_address": "example@emc.com",
"notify_critical": true,
"notify_major": false,
"notify_minor": true,
"notify_info": true
}Causa
PowerStore 不允许用户将电子邮件地址设置为 0 长度字符串。
Resolución
要删除电子邮件地址,请使用 PowerStore Manager 使用 DELETE 操作删除对象。
Productos afectados
PowerStorePropiedades del artículo
Número del artículo: 000198831
Tipo de artículo: Solution
Última modificación: 30 may 2022
Versión: 1
Encuentre respuestas a sus preguntas de otros usuarios de Dell
Servicios de soporte
Compruebe si el dispositivo está cubierto por los servicios de soporte.