PowerStore. Если изменить адрес электронной почты на пустую строку с помощью API-интерфейса REST, это не удалось, но он возвращается к успеху.

Resumen: Попытка изменить адрес электронной почты в объекте email_notify_destination с пустой строкой с помощью REST API завершается сбоем, но возвращается к успеху.

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

Чтобы удалить адрес электронной почты, удалите объект с помощью действия DELETE с помощью PowerStore Manager.

Productos afectados

PowerStore
Propiedades 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.