PowerStore: L'indirizzo e-mail modificato da una stringa vuota che utilizza l'API REST ha esito negativo, ma restituisce l'esito positivo.

概要: Il tentativo di modificare l'indirizzo email in un object email_notify_destination con una stringa vuota utilizzando l'API REST non riesce, ma restituisce l'esito positivo.

この記事は次に適用されます: この記事は次には適用されません: この記事は、特定の製品に関連付けられていません。 すべての製品パージョンがこの記事に記載されているわけではありません。

現象

La modifica del email_notify_destination in una stringa vuota restituisce l'esito positivo. L'utente presume che l'indirizzo e-mail sia stato rimosso correttamente.

Esempio illustrato di seguito:
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
Qui "email_address" è uguale a prima della PATCH:
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
}

原因

PowerStore non consente agli utenti di impostare un indirizzo e-mail su una stringa a 0 lunghezza.

解決方法

Per rimuovere un indirizzo e-mail, eliminare l'object utilizzando l'azione DELETE tramite PowerStore Manager.

対象製品

PowerStore
文書のプロパティ
文書番号: 000198831
文書の種類: Solution
最終更新: 30 5月 2022
バージョン:  1
質問に対する他のDellユーザーからの回答を見つける
サポート サービス
お使いのデバイスがサポート サービスの対象かどうかを確認してください。