PowerStore:使用 REST API 由空字串修改的電子郵件地址應該會失敗,但會傳回成功。

概要: 嘗試使用 REST API 以空字串修改email_notify_destination物件的電子郵件地址應該會失敗,但會傳回成功。

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

現象

將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
}

原因

PowerStore 不允許使用者將電子郵件地址設定為 0 長字串。

解決方法

若要移除電子郵件地址,請使用 PowerStore Manager 使用 DELETE 動作刪除物件。

対象製品

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