Event Notifications コマンドラインインタフェース

IBM Cloud コマンドラインインターフェース(CLI)は、サービス提供のための追加機能を提供します。 IBM Cloud CLIは、その機能を拡張するためのプラグインフレームワークをサポートしています。 Event Notifications プラグイン・リポジトリーから IBM Cloud CLI プラグインをインストールできます。 Event Notifications サービスのCLIプラグインを使用すると、利用可能なCLIコマンドを使って、 Event Notifications サービスのインスタンスを簡単に管理できます。

前提条件

  • IBM Cloud アカウント。 アカウントをお持ちでない場合には、ここをクリックして作成してください。
  • IBM Cloud Event Notifications サービスのインスタンス。
  • ローカル システム上の IBM Cloud CLI パッケージ。

IBM Cloud CLI にログインすると、更新プログラムが利用可能になった際に通知が表示されます。 Event Notifications CLI プラグインで使用可能なコマンドおよびフラグを使用できるように、CLI は必ず最新状態に保ってください。

IBM Cloud クイックリファレンスカード

注: 1.15.2 以前のCLIプラグインのバージョンは非推奨となっています

Event Notifications CLI のインストール

plugin install コマンドを使用して、 Event Notifications CLIプラグインをインストールします。

ibmcloud plugin install en

Event Notifications }} CLIコマンド

CLI Plugin init コマンドは将来廃止される予定です

ibmcloud ja ja リスト

設定されたターゲット領域内のインスタンスを一覧表示する。 リストされたインスタンスからインスタンスGUIDを取得できます。

ibmcloud en en-list

ibmcloud event-notifications 環境変数セット

作業対象のリージョンを設定するには、ibmcloudのターゲットリージョンを設定します(ibmcloud target -r )。または、変数IBMCLOUD_EN_ENDPOINTを介してリージョン固有のエンドポイントをエクスポートします。たとえば、シドニーの場合は次のように指定します:

  • エクスポート IBMCLOUD_EN_ENDPOINT= https://au-syd.event-notifications.cloud.ibm.com/event-notifications

  • IBMCLOUD_EN_ENDPOINT 変数をエクスポートして、 Event Notifications リージョンのパブリックエンドポイントを設定します。

    • ダラス: https://us-south.event-notifications.cloud.ibm.com/event-notifications
    • ロンドン: https://eu-gb.event-notifications.cloud.ibm.com/event-notifications
    • シドニー: https://au-syd.event-notifications.cloud.ibm.com/event-notifications
    • フランクフルト: https://eu-de.event-notifications.cloud.ibm.com/event-notifications
    • マドリード:https://eu-es.event-notifications.cloud.ibm.com/event-notifications
    • 大阪: https://jp-osa.event-notifications.cloud.ibm.com/event-notifications
    • 東京: https://jp-tok.event-notifications.cloud.ibm.com/event-notifications
    • トロント: https://ca-tor.event-notifications.cloud.ibm.com/event-notifications
    • サンパウロ https://br-sao.event-notifications.cloud.ibm.com/event-notifications
    • モントリオール https://ca-mon.event-notifications.cloud.ibm.com/event-notifications
    • Washington DC : https://us-east.event-notifications.cloud.ibm.com/event-notifications
    • チェンナイ https://in-che.event-notifications.cloud.ibm.com/event-notifications
    • ムンバイ https://in-mum.event-notifications.cloud.ibm.com/event-notifications
  • IBMCLOUD_EN_ENDPOINT 変数をエクスポートして、 Event Notifications リージョンのプライベートエンドポイントを設定します。

    • ダラス: https://private.us-south.event-notifications.cloud.ibm.com/event-notifications
    • ロンドン: https://private.eu-gb.event-notifications.cloud.ibm.com/event-notifications
    • シドニー: https://private.au-syd.event-notifications.cloud.ibm.com/event-notifications
    • フランクフルト: https://private.eu-de.event-notifications.cloud.ibm.com/event-notifications
    • マドリード:https://private.eu-es.event-notifications.cloud.ibm.com/event-notifications
    • 大阪: https://private.jp-osa.event-notifications.cloud.ibm.com/event-notifications
    • 東京: https://private.jp-tok.event-notifications.cloud.ibm.com/event-notifications
    • トロント: https://private.ca-tor.event-notifications.cloud.ibm.com/event-notifications
    • サンパウロ https://private.br-sao.event-notifications.cloud.ibm.com/event-notifications
    • モントリオール https://private.ca-mon.event-notifications.cloud.ibm.com/event-notifications
    • Washington DC : https://private.us-east.event-notifications.cloud.ibm.com/event-notifications
    • チェンナイ https://private.in-che.event-notifications.cloud.ibm.com/event-notifications
    • ムンバイ https://private.in-mum.event-notifications.cloud.ibm.com/event-notifications
  • Event Notifications インスタンスを設定するには、 EVENT_NOTIFICATIONS_API_KEY 変数をエクスポートしてください。 apikey

EVENT_NOTIFICATIONS_API_KEY は、 IBM Cloud の API キー、または Event Notifications インスタンスのサービス認証情報 API キーのいずれかを使用できます。

ソース

IBM Cloud Event Notifications のソースで動作します。

ibmcloud event-notifications source の作成

  • アクション: Source を作成します。

CLIでは現在、APIソースの作成のみをサポートしています。

ibmcloud event-notifications sources-create --instance-id INSTANCE-ID --name NAME [--description DESCRIPTION] [--enabled ENABLED] [--store-notifications STORE-NOTIFICATIONS]
  • 指定するパラメーター:
--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--name NAME (int64)

APIソースに指定する名前。

デフォルト値は です。 最大文字数は 255 文字です。 最小文字数は 1 文字です。 値は正規表現 /[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/ と一致しなければなりません。

--description DESCRIPTION (文字列)

ソースの説明。 オプション。

デフォルト値は「」です。最大長は 255 文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--enabled ENABLED (ブール値)

ソースを有効または無効にするためのブールフラグ。 オプション。

値は、ソースを有効にする場合はtrueに、無効にする場合はfalseに設定します。

--store-notifications (ブール値)

トラブルシューティングのために、受信イベントのペイロードを表示できるようにします。

デフォルト値は falseです。

ibmcloud event-notifications ソース更新

  • アクション: 更新 Source
ibmcloud event-notifications source-update --instance-id INSTANCE-ID --id ID [--name NAME] [--description DESCRIPTION] [--enabled ENABLED] [--store-notifications STORE-NOTIFICATIONS]
  • 指定するパラメーター:
--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--name (int64)

API ソース名。

デフォルト値は「」です。最大長は 255 文字です。 最小長は1文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--description (int64)

API ソース 説明

デフォルト値は「」です。最大長は 255 文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--enabled (ブール値)

フィルタリング結果の検索文字列。

値は、ソースを有効にする場合はtrueに、無効にする場合はfalseに設定します。

--store-notifications (ブール値)

トラブルシューティングのために、受信イベントのペイロードを表示できるようにする。

デフォルト値は `false`です。

`--id` (文字列)
:  ソースの固有の識別子。 必須。

   最大長は`100`文字です。 最小文字数は `1` 文字です。 値は正規表現`/[a-zA-Z0-9-:_]*/`と一致する必要があります。

ibm クラウド・イベント通知ソース・リスト

  • アクション: すべての Source を一覧表示する。
ibmcloud event-notifications sources [--limit LIMIT] [--offset OFFSET] [--search SEARCH] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--limit LIMIT (int64)

ページ番号付き結果のページ制限。

最大値は 100 です。 最小値は 1です。

--offset OFFSET (int64)

ページ番号付き結果のオフセット。

最小値は 0 です。

--search SEARCH (文字列)

結果をフィルタリングするための検索ストリング。

最大長は100文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニーク識別子 Event Notifications インスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force]

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

ibm クラウド・イベント通知ソースの取得

  • アクション: 具体的に説明する Source
ibmcloud event-notifications source --id ID --instance-id INSTANCE-ID
  • 指定するパラメーター:
--id ID (文字列)

ソースの固有の識別子。 必須。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

--offset OFFSET

ページ番号付き結果のオフセット。

--search SEARCH

結果をフィルタリングするための検索ストリング。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force]

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

ibmcloud event-notifications source の削除

  • 対処: 特定の Source を削除する。
ibmcloud event-notifications source-delete  --instance-id INSTANCE-ID --id ID
  • 指定するパラメーター:
--id ID (文字列)

ソースの固有の識別子。 必須。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force]

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

宛先

IBM Cloud (日本語) Event Notifications (英語)に翻訳する。

ibm クラウド・イベント通知の宛先の作成

  • 操作: 宛先を作成する。
ibmcloud event-notifications destination-create --instance-id INSTANCE-ID --name NAME --type TYPE [--description DESCRIPTION] [--collect-failed-events COLLECT-FAILED-EVENTS] [--config CONFIG] [--certificate CERTIFICATE] [--certificate-content-type CERTIFICATE-CONTENT-TYPE] [--icon16x16 ICON16X16] [--icon16x16-content-type ICON16X16-CONTENT-TYPE] [--icon16x162x ICON16X162X] [--icon16x162x-content-type ICON16X162X-CONTENT-TYPE] [--icon32x32 ICON32X32] [--icon32x32-content-type ICON32X32-CONTENT-TYPE] [--icon32x322x ICON32X322X] [--icon32x322x-content-type ICON32X322X-CONTENT-TYPE] [--icon128x128 ICON128X128] [--icon128x128-content-type ICON128X128-CONTENT-TYPE] [--icon128x1282x ICON128X1282X] [--icon128x1282x-content-type ICON128X1282X-CONTENT-TYPE]
  • 指定するパラメーター:
--instance-id (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--name NAME (文字列)

宛先の名前。 必須。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--type TYPE (文字列)

宛先の型。 利用可能なオプションは、webhook、push_android、push_ios、push_chrome、push_firefox、push_huawei、push_safari、ibmce、ibmcos、msteams、pagerduty、servicenow、slack、smtp_custom、sms_custom、event_streamsです。 必須。

許容される値は次のとおりです: webhookpush_androidpush_iospush_chromepush_firefoxpush_huaweipush_safariibmceibmcosmsteamspagerdutyservicenowslacksmtp_customsms_custom、event_streams。 最小文字数は 1 文字です。

--collect-failed-events (ブール値)

Cloud Object Storageに失敗したイベントを収集するかどうか。

デフォルト値は `false`です。

`--description DESCRIPTION` (文字列)
:  宛先の説明です。

   デフォルト値は ` `です。 最大文字数は `255` 文字です。 最小文字数は `0` 文字です。 値は正規表現 `/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/` と一致しなければなりません。
--certificate CERTIFICATE (文字列)

提供される証明書ファイル・パス。 許可されているファイル形式は p8 および p12 証明書です。 証明書を渡すためにファイルの場所を提供します。

--certificate-content-type CERTIFICATE-CONTENT-TYPE (文字列)

IOS 宛先の場合に設定される証明書コンテンツ・タイプ。 デフォルト値は「.」です。利用可能なオプションは p8 または p12 です。

--config CONFIG (例 DestinationConfig )

宛先固有のパラメータを設定するために必要な構成です。

--config を指定せずに宛先を作成した場合、宛先は作成されますが、設定を行うまでは機能しません。

--icon16x16 (io.ReadCloser)
Safariアイコン 16x16。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon16x16-content-type (文字列)

Icon16x16のコンテンツタイプ。

--icon16x162x (io.ReadCloser)

Safariアイコン 16x16@2x。

The maximum length is 5000 characters. The minimum length is 1 character.

--icon16x162x-content-type (文字列)

Icon16x162xのコンテンツタイプ。

--icon32x32 (io.ReadCloser)

Safariアイコン 32x32。

The maximum length is 5000 characters. The minimum length is 1 character.

--icon32x32-content-type (文字列)

Icon32x32のコンテンツタイプ。

--icon32x322x (io.ReadCloser)

Safariアイコン 32x32@2x。

The maximum length is 5000 characters. The minimum length is 1 character.

--icon32x322x-content-type (文字列)

Icon32x322xのコンテンツタイプ。

--icon128x128 (io.ReadCloser)

Safariアイコン 128x128。

The maximum length is 5000 characters. The minimum length is 1 character.

--icon128x128-content-type (文字列)

Icon128x128のコンテンツタイプ。

--icon128x1282x (io.ReadCloser)

Safariアイコン 128x128@2x。

The maximum length is 5000 characters. The minimum length is 1 character.

--icon128x1282x-content-type (文字列)

Icon128x1282xのコンテンツタイプ。

{
   "params" : {
      "url" : "exampleString",
      "verb" : "get",
      "custom_headers" : { },
      "sensitive_headers" : [ "exampleString" ]
   }
}

注: Event Notifications Cloud Functionsは廃止され、デスティネーションのカテゴリではサポートされなくなりました。

  • 以下の例は、 P8 証明書を使用し、 iOS 宛先(push_ios)向けの DestinationConfig オブジェクトの形式を示しています。 pre_prod のブーリアンパラメータをtrueに設定すると、デスティネーションをプレプロダクション用に構成できます。それ以外の場合は、値をfalse に設定します
   {
      "params" : {
         "cert_type" : "p8",
         "is_sandbox" : true,
         "key_id": "production",
         "team_id": "1234",
         "bundle_id": "test1",
         "pre_prod" : "true" // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```


- 以下の例は、 P12 証明書を使用した iOS 宛先(push_ios)向けの `DestinationConfig` オブジェクトの形式を示しています。 `pre_prod` のブーリアンパラメータ*をtrue*に設定すると、デスティネーションをプレプロダクション用に構成できます。それ以外の場合は、値*をfalse* に設定します。

```json
   {
      "params" : {
         "cert_type" : "p12",
         "is_sandbox" : true,
         "password": "apnspasswordvalue",
         "pre_prod" : "true" true // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```

- 以下の例は、Chrome 宛先(push_chrome)用の ` `DestinationConfig` ` オブジェクトの形式を示しています。 `pre_prod` のブーリアンパラメータ*をtrue*に設定すると、デスティネーションをプレプロダクション用に構成できます。それ以外の場合は、値*をfalse* に設定します。

```json
   {
      "params" : {
         "api_key": "chromeapikey",
         "website_url" : "https://testwebsite.com",
         "pre_prod" : "true" true // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```

- 以下の例は、 Firefox の宛先(push_firefox)に対する `DestinationConfig` オブジェクトの形式を示しています。 `pre_prod` のブーリアンパラメータ*をtrue*に設定すると、デスティネーションをプレプロダクション用に構成できます。それ以外の場合は、値*をfalse* に設定します。

```json
   {
      "params" : {
         "website_url" : "https://testwebsite.com",
         "pre_prod" : "true" // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```

- 次の例は、Slackの宛先(slack)で、タイプがincoming_webhookの `DestinationConfig` オブジェクトのフォーマットを示しています。

```json
   {
      "params" : {
         "type" : "incoming_webhook",
         "url" : "https://hooks.slack.com/services/G0gyhsush/TYodsjhs/GHTbfidsimkk"
      }
   }
   ```

- 次の例は、Slack宛先(slack)の `DestinationConfig` オブジェクトのフォーマットで、タイプがdirect_messageの場合を示しています。

```json
   {
      "params" : {
         "type" : "direct_message",
         "token" : "vhdwvecwefwefewivcweivcwiwiciwcvwicwec"
      }
   }
   ```

- 以下の例は、Safari 宛先(push_safari)用の ` `DestinationConfig` ` オブジェクトの形式を示しています。 `pre_prod` のブーリアンパラメータ*をtrue*に設定すると、デスティネーションをプレプロダクション用に構成できます。それ以外の場合は、値*をfalse* に設定します。

```json
   {
      "params": {
         "cert_type":"p12",
         "certificate_name":"Users/Testuser/Documents/safari.p12",
         "password":"safarinew",
         "url_format_string":"https://test.com",
         "website_name":"testwebsite",
         "website_push_id":"test",
         "website_url":"https://test.com",
         "pre_prod" : "true" // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```

- 以下の例は、MS Teams(msteams)を宛先とする `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "url" : "https://xyz.webhook.office.com"
      }
   }
   ```

- 以下の例は、 PagerDuty(pagerduty ) を宛先とする `DestinationConfig` オブジェクトの形式を示しています。

   デスティネーションを作成する際は、Routingキーのみを使用することを推奨する。 APIキーは非推奨であり、今後使用することはできません。
   {: attention}

   ```json
   {
      "params" : {
         "routing_key" : "routingkeytoconnecttoPD",
         "api_key" : "cffunctionnamespaceserviceidapikey"
      }
   }
   ```


- 以下の例は、Webhook(webhook)用の `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "url" : "exampleString",
         "verb" : "get",
         "custom_headers" : { },
         "sensitive_headers" : [ "exampleString" ]
      }
   }
   ```

- 以下の例は、Android(push_android)宛先用の `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "project_id" : "6232305230320",
         "private_key" : "36e21epfweort823or8rt832pr8p2r832pr82pr382r8f",
         "client_email" : "testuser.123@gmail.com",
         "pre_prod" : true // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```


- 以下の例は、 ServiceNow(servicenow ) 宛先に対する `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "client_id" : "359705ceddd100eyfewyyw1f0f9e1c96",
         "client_secret": "testsecrets",
         "username": "testuser",
         "password": "user_password",
         "instance_name": "testinstancenje"
      }
   }
   ```

- 以下の例は、 Code Engine (ibmce)宛ての `DestinationConfig` オブジェクトの形式を示しています。

   コードエンジン宛先タイプ:アプリケーション

   ```json
   {
      "params" : {
         "type" : "application",
         "url" : "https://codeengine.test.com",
         "verb" : "get",
         "custom_headers" : { },
         "sensitive_headers" : [ "exampleString" ]
      }
   }
   ```

   コードエンジン宛先タイプ:ジョブ

   ```json
   {
      "params" : {
         "type" : "job",
         "job_name" : "custom-job",
         "project_crn" : "crn:v1:bluemix:public:codeengine:us-south:a/e7e5820aeccb40efb78fd69a7858ef23:xxxxxxxxxxxxxx::"
      }
   }
   ```


- 以下の例は、 IBM Cloud Object Storage (ibmcos)宛ての `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "bucket_name" : "cos-destination-en-bucket",
         "instance_id" : "42e13636e-0548-41a0-a178-e95be28464773",
         "endpoint" : "https://s3.us-west.cloud-object-storage.appdomain.cloud"
      }
   }
   ```


- 以下の例は、Huawei(push_huawei)宛先における `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
         "client_id" : "359705ceddd100eyfew",
         "client_secret": "testsecrets",
         "pre_prod" : true // Set to true in case of configuring Destination as pre-prod Destination (pre_prod destination can only be configured for Standard plan)
      }
   }
   ```

- 以下の例は、カスタムメール(smtp_custom)宛先における `DestinationConfig` オブジェクトの形式を示しています。 カスタムメールサンドボックス(smtp_custom_sandbox)の宛先の場合、宛先設定パラメータは必要ありません。

   プロセス カスタムドメインの設定と確認を行うには: <https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-destinations-custom-email#en-destinations-custom-email-verify>

   ```json
   {
      "params" : {
         "domain": "mailx.com"
      }
   }
   ```

- 以下の例は、 Event Streams (event_streams)宛先における `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
        "crn": "crn:v1:bluemix:public:messagehub:us-south:a/9f007405a9fe4a5d9345fa8c13357373:a292db6e-af78-4c0b-b3db-7d6794b637g::",
        "endpoint": "https://n6627w6t7dgeh2cfgd.svc09.us-south.eventstreams.cloud.ibm.com",
        "topic": "demo_topic"
      }
   }
   ```

- 以下の例は、 App Configuration (app_configuration)宛先における `DestinationConfig` オブジェクトの形式を示しています。

```json
   {
      "params" : {
        "type": "features",
        "crn": "crn:v1:bluemix:public:apprapp:us-south:a/4a74f2c31f554afc88156b73a1d577c6:dbxxxx93-0xxa-4xx5-axcf-c2faxxxd::",
        "environment_id": "stage",
        "feature_id": "test"
      }
   }
   ```

注: `DestinationConfig` を使用せずにカスタム SMS 送信先を作成することは可能ですが、必要な個人用番号を明示的にリクエストして設定するまでは機能しません。 パーソナライズされた番号を申請するには、「 [カスタムSMSのパーソナライズされた番号](/docs/event-notifications?topic=event-notifications-en-destinations-sms-custom#en-destinations-sms-custom-numbers) 」をご覧ください。

### ibm クラウド・イベント通知の宛先リスト {: #en-cli-destination-list-command}

- **アクション:** すべての `Destination` を一覧表示する。

```sh {: pre}
ibmcloud event-notifications destinations [--limit LIMIT] [--offset OFFSET] [--search SEARCH] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--limit LIMIT (int64)

ページ番号付き結果のページ制限。

最大値は 100 です。 最小値は 1です。

--offset OFFSET (int64)

ページ番号付き結果のオフセット。

最小値は 0 です。

--search SEARCH (文字列)

結果をフィルタリングするための検索ストリング。

最大長は100文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--instance-id (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知の宛先の取得

  • アクション: 具体的に説明する Destination
ibmcloud event-notifications destination --id ID --instance-id INSTANCE-ID
  • 指定するパラメーター:
--id ID (文字列)

宛先の固有 ID。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知の宛先の更新

  • 対応: 既存の Destination を更新する。
ibmcloud event-notifications destination-update --instance-id INSTANCE-ID --id ID [--name NAME] [--description DESCRIPTION] [--collect-failed-events COLLECT-FAILED-EVENTS] [--config CONFIG] [--certificate CERTIFICATE] [--certificate-content-type CERTIFICATE-CONTENT-TYPE] [--icon16x16 ICON16X16] [--icon16x16-content-type ICON16X16-CONTENT-TYPE] [--icon16x162x ICON16X162X] [--icon16x162x-content-type ICON16X162X-CONTENT-TYPE] [--icon32x32 ICON32X32] [--icon32x32-content-type ICON32X32-CONTENT-TYPE] [--icon32x322x ICON32X322X] [--icon32x322x-content-type ICON32X322X-CONTENT-TYPE] [--icon128x128 ICON128X128] [--icon128x128-content-type ICON128X128-CONTENT-TYPE] [--icon128x1282x ICON128X1282X] [--icon128x1282x-content-type ICON128X1282X-CONTENT-TYPE]
  • 指定するパラメーター:
--instance-id (文字列)
IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。
最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

宛先の固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--name (文字列)

宛先名。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--description (文字列)

宛先の記述。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--collect-failed-events (ブール値)

Cloud Object Storageに失敗したイベントを収集するかどうか。

デフォルト値は falseです。

--config (DestinationConfig)

宛先構成を記述するペイロード。

JSON文字列オプションを提供するか、または @ で始まるファイルパスオプションを指定して、読み込むJSONファイルを指定します。例えば、 --config=@path/to/file.json

--certificate (io.ReadCloser)

APNS用の証明書。

最大長は5000文字です。 最小文字数は 1 文字です。

--certificate-content-type (文字列)

証明書のコンテンツタイプ。

--icon16x16 (io.ReadCloser)

Safariアイコン 16x16。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon16x16-content-type (文字列)

Icon16x16のコンテンツタイプ。

--icon16x162x (io.ReadCloser)

Safariアイコン 16x16@2x。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon16x162x-content-type (文字列)

Icon16x162xのコンテンツタイプ。

--icon32x32 (io.ReadCloser)

Safariアイコン 32x32。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon32x32-content-type (文字列)

Icon32x32のコンテンツタイプ。

--icon32x322x (io.ReadCloser)

Safariアイコン 32x32@2x。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon32x322x-content-type (文字列)

Icon32x322xのコンテンツタイプ。

--icon128x128 (io.ReadCloser)

Safariアイコン 128x128。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon128x128-content-type (文字列)

Icon128x128のコンテンツタイプ。

--icon128x1282x (io.ReadCloser)

Safariアイコン 128x128@2x。

最大長は5000文字です。 最小文字数は 1 文字です。

--icon128x1282x-content-type (文字列)

Icon128x1282xのコンテンツタイプ。

ibm クラウド・イベント通知の宛先の削除

  • アクション: 既存の Destination を削除する。
ibmcloud event-notifications destination-delete --id ID --instance-id INSTANCE-ID [--force]
  • 指定するパラメーター:
--id ID (文字列)

宛先の固有 ID。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force] (ブール値)

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

ibmcloud event-notifications enabled-countries

SMS送信先の有効な国の詳細情報を取得します。

ibmcloud event-notifications enabled-countries --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

宛先の固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibmcloud event-notifications enabled-countries \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications test-destination

目的地をテストする。

ibmcloud event-notifications test-destination --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

宛先の固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibmcloud event-notifications test-destination \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications email-sandbox-destination-update

サンドボックスのデスティネーションをカスタムドメインで本番環境にアップグレードします。

ibmcloud event-notifications email-sandbox-destination-update --instance-id INSTANCE-ID --id ID --domain DOMAIN

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`32`文字です。 最小長は`32`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/`と一致する必要があります。
--id (文字列)

宛先の固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/^[0-9(a-f|A-F)]{8}-[0-9(a-f|A-F)]{4}-4[0-9(a-f|A-F)]{3}-[89ab][0-9(a-f|A-F)]{3}-[0-9(a-f|A-F)]{12}$/と一致する必要があります。

--domain (文字列)

Eメールのドメイン 必須。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

ibmcloud event-notifications email-sandbox-destination-update \
    --instance-id=exampleString \
    --id=exampleString \
    --domain=exampleString

ibmcloud event-notifications verify-destination-update

カスタムドメインのSPFおよびDKIMレコードを確認する。

ibmcloud event-notifications verify-destination-update --instance-id INSTANCE-ID --id ID --type TYPE

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

宛先の固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--type (文字列)

検証の種類。 必須。

最大長は20文字です。 最小文字数は 1 文字です。 値は正規表現/[a-z]/と一致する必要があります。

ibmcloud event-notifications verify-destination-update \
    --instance-id exampleString \
    --id exampleString \
    --type exampleString

トピック

IBM Cloud Event Notifications トピックを操作します。

ibm クラウド・イベント通知ピック作成

  • アクション: 新しい Topic を作成する。
ibmcloud event-notifications topic-create --name NAME [--description DESCRIPTION] [--sources SOURCES] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--name NAME (文字列)

トピック名。 必須。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--description DESCRIPTION (文字列)

トピックの記述。

デフォルト値は「」です。最大長は 255 文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--sources SOURCES] (TopicCreateSourcesItem[])

このトピックに関連付ける、フィルタ設定を含むソースの一覧。 これは単なるソースIDのリストではありません。各エントリには、ソースIDに加え、そのソースからのどのイベントをこのトピックにルーティングするかを決定するフィルタルールが含まれています。 完全な構造については、 をご覧ください。

  • 次の例は、周期的タイマーソースの TopicCreateSourcesItem[] オブジェクトのフォーマットを示しています。
    [
       {
          "id" : "exampleString",
          "rules" : [
             {
                "enabled" : true,
                "event_schedule_filter": {
                   "starts_at": "2024-12-23T12:00:00.000Z",
                   "ends_at": "2024-12-23T20:00:00.000Z",
                   "expression": "* * * * *"
                   }
             }
          ]
       }
    ]
   ```

- 次の例は、 `TopicCreateSourcesItem[]` オブジェクトの形式を示しています。

```json
   [
      {
         "id" : "exampleString",
         "rules" : [
            {
               "enabled" : true,
               "event_type_filter" : "$.*",
               "notification_filter" : "exampleString"
            }
         ]
      }
   ]
   ```

- 次の例は、 `TopicUpdateSourcesItem[]` オブジェクトの形式を示しています。

```json
   [
      {
         "id" : "exampleString",
         "rules" : [
            {
               "enabled" : true,
               "event_type_filter": "$.notification_event_info.event_type == \'cert_manager\'",
               "notification_filter" : "$.notification.findings[0].severity == \'MODERATE\'",
               "rule_id" : "exampleString"
            }
         ]
      }
   ]
   ```

### ibm クラウド・イベント通知トピック・リスト {: #en-cli-topic-list-command}

- **アクション:** すべての `Topic` を一覧表示する。

```sh {: pre}
ibmcloud event-notifications topics [--limit LIMIT] [--offset OFFSET] [--search SEARCH] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--limit LIMIT (int64)

ページ番号付き結果のページ制限。

最大値は 100 です。 最小値は 1です。

--offset OFFSET (int64)

ページ番号付き結果のオフセット。

最小値は 0 です。

--search SEARCH (文字列)

結果をフィルタリングするための検索ストリング。

最大長は100文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知トピックの取得

  • アクション: 具体的に説明する Topic
ibmcloud event-notifications topic --id ID [--include INCLUDE] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--id ID (文字列)

トピックの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--include INCLUDE (文字列)

サブトピックを含める。

デフォルト値は「」です。最大長は 20 文字です。 最小長は0文字です。 値は正規表現/[a-z]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知トピックの更新

  • 対応: 既存の Topic を更新する。
ibmcloud event-notifications topic-replace --id ID [--name NAME] [--description DESCRIPTION] [--sources SOURCES] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--id (文字列)

トピックの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--name (文字列)

トピック名。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--description (文字列)

トピックの記述。

デフォルト値は「」です。最大長は 255 文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*()]*/と一致する必要があります。

--sources (TopicUpdateSourcesItem[])

このトピックに追加する新しい情報源の一覧と、それぞれのフィルタ設定。 これは単なるソースIDのリストではありません。各エントリには、ソースIDに加え、そのソースからのどのイベントをこのトピックにルーティングするかを決定するフィルタルールが含まれています。 完全な構造については、 をご覧ください。

このフラグは、新しいソースのみを追加します。 そのトピックにすでに添付されている情報源は、置き換えたり更新したりすることはできません。削除して、再度追加するしかありません。 ソースフィルターを変更するには、まずトピックからそのソースを削除し、新しいフィルター設定を適用して再度追加してください。

ibm クラウド・イベント通知トピックの削除

  • アクション: 既存の Topic を削除する。
ibmcloud event-notifications topic-delete --id ID --instance-id INSTANCE-ID [--force]
  • 指定するパラメーター:
--id ID (文字列)

トピックの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force] (ブール値)

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

サブスクリプション

IBM Cloud Event Notifications 購読で操作します。

ibm クラウド・イベント通知サブスクリプションの作成

  • アクション: 新しい Subscription を作成する。
ibmcloud event-notifications subscription-create --instance-id INSTANCE-ID --name NAME --destination-id DESTINATION-ID --topic-id TOPIC-ID [--description DESCRIPTION] [--attributes ATTRIBUTES]
  • 指定するパラメーター:
--name NAME (文字列)

サブスクリプションに設定される名前。

最大長は50文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

--description DESCRIPTION (文字列)

サブスクリプションに設定される説明。

デフォルト値は「」です。最大長は 255 文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--destination-id DESTINATION-ID (文字列)

サブスクリプションに設定される宛先 ID。

最大長は150文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--topic-id TOPIC-ID (文字列)

サブスクリプションに設定されるトピック ID。

最大長は150文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--attributes ATTRIBUTES (SubscriptionCreateAttributes)

サブスクリプションに対して設定する属性。

  • 以下の例は、Webhook用の SubscriptionCreateAttributes オブジェクトの形式を示しています。
   {
      "signing_enabled" : true,
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13"
   }
   ```

- 以下の例は、SMS用の `SubscriptionCreateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited" :["+1xxxxxxxxxx", "+1xxxxxxxxxx"]
   }
   ```

- 以下の例は、 IBM のメールにおける `SubscriptionCreateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited" :["entest@gmail.com"],
      "add_notification_payload": true,
      "reply_to_mail": "en@ibm.com",
      "reply_to_name": "EYS ORG",
      "from_name":"ABC ORG"
   }
   ```

- 以下の例は、Slack 送信先タイプにおいて、 `SubscriptionCreateAttributes` オブジェクトの形式が「incoming_webhook」である場合を示しています。

```json
   {
      "attachment_color" : "#FF0000",
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13",
   }
   ```

- 以下の例は、Slack 送信先タイプが direct_message の場合の、 `SubscriptionCreateAttributes` オブジェクトの形式を示しています。

```json
{
   "channels" : [{ "id": "GHIUIFJHGGH"},{"id": "TSFDIDFOFNF"}],
   "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13",
}
  • 以下の例は、 ServiceNow における SubscriptionCreateAttributes オブジェクトの形式を示しています。
   {
      "assigned_to" : "serviceuser@gmail.com",
      "assignment_group" : "incidentgroup"
   }
   ```

- 以下の例は、カスタムメール用の `SubscriptionCreateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited" :["entest@gmail.com"],
      "add_notification_payload": true,
      "reply_to_mail": "en@ibm.com",
      "reply_to_name": "EYS ORG",
   }
   ```
- 次の例は、Custom Email Sandboxの `SubscriptionCreateAttributes` オブジェクトのフォーマットを示しています。

```json
   {
      "invited" :["entest@gmail.com"],
      "add_notification_payload": true,
      "reply_to_mail": "en@ibm.com",
      "reply_to_name": "EYS ORG",
      "from_name":"ABC ORG",
      "from_email":"Testuser@mailx.com",
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724afc58b13",
      "template_id_invitation": "f1ef32fb-b7dd-4405-xxxx-7b6719cee8aa"
   }
   ```
   - 以下の例は、Pagerduty/ Event Streams における ` `SubscriptionCreateAttributes` ` オブジェクトの形式を示しています。

   ```json
   {
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724afc58b13",
   }
   ```
   - 以下の例は、 App Configuration における ` `SubscriptionCreateAttributes` ` オブジェクトの形式を示しています。 デスティネーションのサブスクリプションを作成または更新するとき **App Configuration** デスティネーションのサブスクリプションを作成または更新するとき、 `attributes` オブジェクトには特定のルールがあります:
      - **次のいずれかを**含める必要があります `feature_flag_enabled`**または**`template_id_notification`
      - 両方のプロパティを同時に含めることは**できません**

      これにより、サブスクリプションが正しいユースケース( **機能フラグの評価か** **通知テンプレートの作成の**いずれか)に対して作成されることが保証されます。ただし、両方が同時に作成されることはありません。

   ```json
   {
      "template_id_notification": "e40843c8-xxxx-4717-xxxx-f923f2786a34",
   }
   ```
   ```json
   {
      "feature_flag_enabled": false,
   }
   ```

### ibm クラウド・イベント通知サブスクリプション・リスト {: #en-cli-subscription-list-command}

- **アクション:** すべての `Subscription` を一覧表示する。

```sh {: pre}
ibmcloud event-notifications subscriptions [--offset OFFSET] [--limit LIMIT] [--search SEARCH] --instance-id INSTANCE-ID
  • 指定するパラメーター:
--limit LIMIT (int64)

ページ番号付き結果のページ制限。

最大値は 100 です。 最小値は 1です。

--offset OFFSET (int64)

ページ番号付き結果のオフセット。

最小値は 0 です。

--search SEARCH (文字列)

結果をフィルタリングするための検索ストリング。

最大長は100文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知サブスクリプションの取得

  • アクション: 具体的に説明する Subscription
ibmcloud event-notifications subscription --id ID --instance-id INSTANCE-ID
  • 指定するパラメーター:
--id ID (文字列)

サブスクリプションの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

ibm クラウド・イベント通知サブスクリプションの削除

  • アクション: 既存の Subscription を削除する。
ibmcloud event-notifications subscription-delete --id ID --instance-id INSTANCE-ID [--force]
  • 指定するパラメーター:
--id ID (文字列)

サブスクリプションの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニークな識別子 Event Notificationsのインスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--force] (ブール値)

活動化して、リソースの削除を強制します (確認プロンプトをバイパスします)。

ibm クラウド・イベント通知サブスクリプションの更新

  • 対応: 既存の Subscription を更新する。
ibmcloud event-notifications subscription-update --instance-id INSTANCE-ID --id ID [--name NAME] [--description DESCRIPTION] [--attributes ATTRIBUTES]
  • 指定するパラメーター:
--id ID (文字列)

サブスクリプションの固有の識別子。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

[--name NAME] (文字列)

サブスクリプションに設定される更新された説明。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

--instance-id INSTANCE-ID (文字列)

IBM Cloudのユニーク識別子 Event Notifications インスタンス。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/と一致する必要があります。

[--description DESCRIPTION] (文字列)

サブスクリプションに設定される更新された説明。

デフォルト値は「」です。最大長は 100 文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

[-attributes ATTRIBUTES] (SubscriptionUpdateAttributes)

サブスクリプションに設定される属性

  • 以下の例は、Webhook用の SubscriptionUpdateAttributes オブジェクトの形式を示しています。
   {
      "signing_enabled": true
   }
   ```

- 以下の例は、 IBM のSMSにおける `SubscriptionUpdateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited": {
         "add": ["+8xxxxxxxxxx"],
         "remove": ["+1xxxxxxxxxx", "+91xxxxxxxxxx"]
      },
      "subscribed": {
         "remove": ["+1xxxxxxxxxx", "+91xxxxxxxxxx"]
      },
      "unsubscribed": {
         "remove": ["+1xxxxxxxxxx", "+91xxxxxxxxxx"]
      }
   }
   ```

- 以下の例は、 IBM のメールにおける `SubscriptionUpdateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited": {
         "add": ["example1@gmail.com"],
         "remove": []
      },
      "subscribed": {
         "remove": ["example2@gmail.com"]
      },
      "unsubscribed": {
         "remove": ["example3@gmail.com"]
      },
      "reply_to_mail": "example@ibm.com",
      "reply_to_name": "USA news",
      "from_name": "IBM",
      "add_notification_payload": true
   }
   ```

- 以下の例は、カスタムメール用の `SubscriptionUpdateAttributes` オブジェクトの形式を示しています。

```json
   {
      "invited": {
         "add": ["example1@gmail.com"],
         "remove": []
      },
      "subscribed": {
         "remove": ["example2@gmail.com"]
      },
      "unsubscribed": {
         "remove": ["example3@gmail.com"]
      },
      "reply_to_mail": "example@ibm.com",
      "reply_to_name": "USA news",
      "from_name": "IBM",
      "from_email": "test@email.com",
      "add_notification_payload": true,
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724afc58b13",
      "template_id_invitation": "f1ef32fb-b7dd-4405-xxxx-7b6719cee8aa"
   }
   ```

- 次の例は、Custom Email Sandboxの `SubscriptionUpdateAttributes` オブジェクトのフォーマットを示しています。

```json
   {
      "invited": {
         "add": ["example1@gmail.com"],
         "remove": []
      },
      "subscribed": {
         "remove": ["example2@gmail.com"]
      },
      "unsubscribed": {
         "remove": ["example3@gmail.com"]
      },
      "reply_to_mail": "example@ibm.com",
      "reply_to_name": "USA news",
      "add_notification_payload": true,
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724afc58b13",
      "template_id_invitation": "f1ef32fb-b7dd-4405-xxxx-7b6719cee8aa"
   }
   ```

- 次の例は、Slack用の `SubscriptionUpdateAttributes` オブジェクトのタイプが `incoming_webhook` の場合のフォーマットを示しています。

```json
   {
      "attachment_color" : "#FF0000",
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13",
   }
   ```

- 次の例は、Slack用の `SubscriptionUpdateAttributes` オブジェクトのタイプが `direct_message` の場合のフォーマットを示しています。

```json
   {
      "channels": [{"id": "D01CFDTYBH", "operation": "add"}, {"id": "D01GHUTYBH", "operation": "remove"}],
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13",
   }
   ```

- 以下の例は、Service Now用の `SubscriptionUpdateAttributes` オブジェクトのフォーマットを示しています。

```json
   {
      "assigned_to" : "serviceuser@gmail.com",
      "assignment_group" : "incidentgroup"
   }
   ```

   - 以下の例は、Pagerduty/ Event Streams における ` `SubscriptionUpdateAttributes` ` オブジェクトの形式を示しています。

   ```json
   {
      "template_id_notification": "a59f6e38-7a48-xxxx-b665-3724axx58b13",
   }
   ```

   - 以下の例は、 App Configuration における ` `SubscriptionCreateAttributes` ` オブジェクトの形式を示しています。 デスティネーションのサブスクリプションを作成または更新するとき **App Configuration** デスティネーションのサブスクリプションを作成または更新するとき、 `attributes` オブジェクトには特定のルールがあります:
      - **次のいずれかを**含める必要があります `feature_flag_enabled`**または**`template_id_notification`
      - 両方のプロパティを同時に含めることは**できません**
               これにより、サブスクリプションが正しいユースケース( **機能フラグの評価か** **通知テンプレートの作成の**いずれか)に対して作成されることが保証されます。ただし、両方が同時に作成されることはありません。

   ```json
   {
      "template_id_notification": "e40843c8-xxxx-4717-xxxx-f923f2786a34",
   }
   ```
   ```json
   {
      "feature_flag_enabled": false,
   }
   ```

## 統合 {: #en-cli-integration}

IBM Cloud Event Notifications 統合で操作します。

### ibmcloud イベント通知の統合 作成 {: #en-cli-integration-create-command}

```sh
ibmcloud event-notifications integration-create --instance-id INSTANCE-ID --type TYPE --metadata METADATA

コマンド・オプション

--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。

 最大長は`36`文字です。 最小長は`36`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--type (文字列)

統合の種類 collect_failed_events。

最大長は50文字です。 最小長は1文字です。 許容される値は collect_failed_events である。

--metadata (IntegrationCreateAttributes)

更新のための統合スキーマ

統合に必要なメタデータ。

  • 次の例は、 IntegrationCreateAttributes オブジェクトの形式を示しています。
   {
      "endpoint": "https://s3.us-west.cloud-object-storage.appdomain.cloud",
      "crn": "crn:v1:bluemix:public:cloud-object-storage:global:xxxxxxx6db359a81a1dde8f44bxxxxxx:xxxxxxxx-1d48-xxxx-xxxx-xxxxxxxxxxxx::",
      "bucket_name": "cloud-object-storage"
   }
   ```

### ibmcloud イベント通知の統合を置き換える {: #en-cli-integration-update-command}

`Integration` を置き換えます。

```sh
ibmcloud event-notifications integration-replace --instance-id INSTANCE-ID --id ID --type Type --metadata METADATA

コマンド・オプション

--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。

 最大長は`36`文字です。 最小長は`36`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--type (文字列)

統合のタイプ KMS/hs-crypto(非推奨)。

最大長は50文字です。 最小長は1文字です。 許可される値はKMSとcollect_failed_eventsである。 注:hs-crypto型は現在非推奨。 hs-cryptoタイプの新しい統合リソースはサポートされない。

--metadata (IntegrationReplaceAttributes)

更新のための統合スキーマ

統合に必要なメタデータ。

--id (文字列)

統合用のユニークな識別子。 必須。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

  • 以下の例は、kms 用の IntegrationReplaceAttributes オブジェクトの形式を示しています。
   {
      "endpoint" : "https://qa.us-south.kms.cloud.ibm.com",
      "crn" : "crn of key protect",
      "root_key_id" : "root key id"
   }
   ```

### ibmcloud イベント通知 統合リスト {: #en-cli-integration-list-command}

すべての`Integrations`をリストします。

```sh
ibmcloud event-notifications integrations [--limit LIMIT] [--offset OFFSET] [--search SEARCH] --instance-id INSTANCE-ID

コマンド・オプション

--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。

 最大長は`36`文字です。 最小長は`36`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--limit (int64)

ページ番号付き結果のページ限界。

最大値は 100 です。 最小値は 1です。

--offset (int64)

ページ番号付き結果のオフセット。

最小値は 0 です。

--search (文字列)

フィルタリング結果の検索文字列。

最大長は100文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

ibmcloud event-notifications 統合取得

特定のIntegrationを取得します。

ibmcloud event-notifications integration --id ID --instance-id INSTANCE-ID

コマンド・オプション

--instance-id (文字列)

IBM CloudのインスタンスEvent Notificationsの固有の識別子。

 最大長は`36`文字です。 最小長は`36`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

統合用のユニークな識別子。 必須。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

テンプレート

IBM Cloud Event Notifications テンプレート。

ibmcloud event-notifications template-create

新しいテンプレートを作成します。

ibmcloud event-notifications template-create --instance-id INSTANCE-ID --name NAME --type TYPE --params PARAMS [--description DESCRIPTION]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--name (文字列)

メッセージテンプレート。 必須。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--type (文字列)

テンプレートの種類。 必須。

最大長は24文字です。 最小長は22文字です。 値は正規表現/^(smtp_custom.notification|smtp_custom.invitation)$/と一致する必要があります。

--params (TemplateConfig)

テンプレートの構成を記述するペイロード。 必須。

このJSONオプションは、個々のフィールドを他のオプションで設定することで提供することもできます。 それらのオプションとは相互に排他的です。

JSON文字列オプションを提供するか、または @ で始まるファイルパスオプションを指定して、読み込むJSONファイルを指定します。例えば、 --params=@path/to/file.json

--description (文字列)

テンプレートの説明。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--params-body (文字列)

テンプレート本文。 このオプションは、JSONオプション「params」のサブフィールドに値を提供します。 そのオプションとは両立しません。

最大長は20000文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

--params-subject (文字列)

テンプレートの件名。 このオプションは、JSONオプション「params」のサブフィールドに値を提供します。 そのオプションとは両立しません。

最大長は1000文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

  • 以下の例は、Eメール用の TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは、 smtp_custom.notification|smtp_custom.invitation
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type smtp_custom.notification \
    --params '{"body": "exampleString", "subject": "exampleString"}' \
    --description exampleString
  • 以下の例は、Slack用の TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは slack.notification です。
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type slack.notification \
    --params '{"body": "ewoJImJsb2NrcyI6IFsKCQl7CgkJCSJ0eXBlIjogInNlY3Rpb24iLAoJCQkidGV4dCI6IHsKCQkJCSJ0eXBlIjogIm1ya2R3biIsCgkJCQkidGV4dCI6ICJOZXcgUGFpZCBUaW1lIE9mZiByZXF1ZXN0IGZyb20gPGV4YW1wbGUuY29tfEZyZWQgRW5yaXF1ZXo+XG5cbjxodHRwczovL2V4YW1wbGUuY29tfFZpZXcgcmVxdWVzdD4iCgkJCX0KCQl9CgldCn0="}' \
    --description exampleString
  • 以下の例は、Webhook用の TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは、 webhook.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type webhook.notification \
    --params '{"body": "ewoJImJsb2NrcyI6IFsKCQl7CgkJCSJ0eXBlIjogInNlY3Rpb24iLAoJCQkidGV4dCI6IHsKCQkJCSJ0eXBlIjogIm1ya2R3biIsCgkJCQkidGV4dCI6ICJOZXcgUGFpZCBUaW1lIE9mZiByZXF1ZXN0IGZyb20gPGV4YW1wbGUuY29tfEZyZWQgRW5yaXF1ZXo+XG5cbjxodHRwczovL2V4YW1wbGUuY29tfFZpZXcgcmVxdWVzdD4iCgkJCX0KCQl9CgldCn0="}' \
    --description exampleString
  • 以下の例は、Pagerduty用の TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは、 pagerduty.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type pagerduty.notification \
    --params '{"body": "ewogICJwYXlsb2FkIjogewogICAgInN1bW1hcnkiOiAie3sgZGF0YS5hbGVydF9kZWZpbml0aW9uLm5hbWV9fSIsCiAgICAidGltZXN0YW1wIjogInt7dGltZX19IiwKICAgICJzZXZlcml0eSI6ICJpbmZvIiwKICAgICJzb3VyY2UiOiAie3sgc291cmNlIH19IgogIH0sCiAgImRlZHVwX2tleSI6ICJ7eyBpZCB9fSIsCiAge3sjZXF1YWwgZGF0YS5zdGF0dXMgInRyaWdnZXJlZCJ9fQogICJldmVudF9hY3Rpb24iOiAidHJpZ2dlciIKICAge3svZXF1YWx9fQoKICB7eyNlcXVhbCBkYXRhLnN0YXR1cyAicmVzb2x2ZWQifX0KICAiZXZlbnRfYWN0aW9uIjogInJlc29sdmUiCiAge3svZXF1YWx9fQoKICAge3sjZXF1YWwgZGF0YS5zdGF0dXMgImFja25vd2xlZGdlZCJ9fQogICAiZXZlbnRfYWN0aW9uIjogImFja25vd2xlZGdlIgogICB7ey9lcXVhbH19Cn0="}' \
    --description exampleString
  • 以下の例は、 Event Streams における TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは、 event_streams.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type event_streams.notification \
    --params '{"body": "eyJuYW1lIjoie3tkYXRhLm5hbWV9fSIifQ=="}' \
    --description exampleString
  • 次の例は、 Code Engine ジョブの TemplateConfig オブジェクトのフォーマットを示している。 サポートされているタイプは、 ibmcejob.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type ibmcejob.notification\
    --params '{"body": "ewogInJ1bl9lbnZfdmFyaWFibGVzIjogWwogICB7ICJuYW1lIjogInJlZ2lvbiIsICJ2YWx1ZSI6ICJ7e2RhdGEucmVnaW9ufX0iLCJ0eXBlIjogImxpdGVyYWwifSwKeyJuYW1lIjoiVkFSMSIsInR5cGUiOiJsaXRlcmFsIiwidmFsdWUiOiJ7e2RhdGEudmFyMX19In0sCnsibmFtZSI6IlZBUjIiLCJ0eXBlIjoibGl0ZXJhbCIsInZhbHVlIjoie3tkYXRhLnZhcjJ9fSJ9Cl0KfQ=="}' \
    --description exampleString
  • 次の例は、 Code Engine アプリケーション/ファンクションの TemplateConfig オブジェクトのフォーマットを示しています。 サポートされているタイプは、 ibmceapp.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type ibmceapp.notification\
    --params '{"body": "ewogICJ2YXIxIjogInt7ZGF0YS52YXIxfX0iLAogICJ2YXIyIjogInt7ZGF0YS52YXIyfX0iCn0="}' \
    --description exampleString
  • 以下の例は、 App Configuration における TemplateConfig オブジェクトの形式を示しています。 サポートされているタイプは、 app_configuration.notification
ibmcloud event-notifications template-create \
    --instance-id exampleString \
    --name exampleString \
    --type app_configuration.notification\
    --params '{"body": "eyJlbmFibGVkIjogZmFsc2V9Cg=="}' \
    --description exampleString

ibmcloud event-notifications templates

すべてのテンプレートをリストアップする。 注: --all-pages オプションが設定されていない場合、コマンドはコレクションの1ページのみを取得します。

ibmcloud event-notifications templates --instance-id INSTANCE-ID [--limit LIMIT] [--offset OFFSET] [--search SEARCH]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--limit (int64)

ページ番号付き結果のページ限界。

デフォルト値は 10です。 最大値は 100 です。 最小値は 1 です。

--offset (int64)

ページ番号付き結果のオフセット。

デフォルト値は 0です。 最小値は 0です。

--search (文字列)

フィルタリング結果の検索文字列。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--all-pages (ブール値)

テンプレートのコレクションの全ページを表示するには、複数のリクエストを実行します。

ibmcloud event-notifications templates \
    --instance-id exampleString \
    --limit 10 \
    --offset 0 \
    --search exampleString

ibmcloud event-notifications template

テンプレートの詳細を取得します。

ibmcloud event-notifications template --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`32`文字です。 最小長は`32`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/`と一致する必要があります。
--id (文字列)

テンプレート用のユニークな識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications template \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications template-replace

テンプレートの詳細を更新します。

ibmcloud event-notifications template-replace --instance-id INSTANCE-ID --id ID [--name NAME] [--description DESCRIPTION] [--type TYPE] [--params PARAMS]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

テンプレート用のユニークな識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--name (文字列)

テンプレート名。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--description (文字列)

テンプレートの説明。

最大長は255文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--type (文字列)

テンプレートの種類。

最大長は24文字です。 最小長は22文字です。 値は正規表現/^(smtp_custom.notification|smtp_custom.invitation)$/と一致する必要があります。

--params (TemplateConfig)

テンプレートの構成を記述するペイロード。 このJSONオプションは、個々のフィールドを他のオプションで設定することで提供することもできます。 それらのオプションとは相互に排他的です。

JSON文字列オプションを提供するか、または @ で始まるファイルパスオプションを指定して、読み込むJSONファイルを指定します。例えば、 --params=@path/to/file.json

ibmcloud event-notifications template-update \
    --instance-id exampleString \
    --id exampleString \
    --name exampleString \
    --description exampleString \
    --type exampleString \
    --params '{"body": "exampleString", "subject": "exampleString"}'

ibmcloud event-notifications template-delete

テンプレートを削除します。

ibmcloud event-notifications template-delete --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

テンプレート用のユニークな識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications template-delete \
    --instance-id exampleString \
    --id exampleString

ibmcloud event-notifications pre-defined-templates

すべての定義済みテンプレートを一覧表示します。

--all-pages オプションが設定されていない場合、コマンドはコレクションの単一ページのみを取得する。

ibmcloud event-notifications pre-defined-templates --instance-id INSTANCE-ID --source SOURCE --type TYPE [--limit LIMIT] [--offset OFFSET] [--search SEARCH]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`32`文字です。 最小長は`32`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/`と一致する必要があります。
--source (文字列)

ソースの種類 必須。

最大長は50文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

--type (文字列)

宛先タイプ。 必須。

最大長は50文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

--limit (int64)

ページ番号付き結果のページ限界。

デフォルト値は 10です。 最大値は 100 です。 最小値は 1 です。

--offset (int64)

ページ番号付き結果のオフセット。

デフォルト値は 0です。 最小値は 0です。

--search (文字列)

フィルタリング結果の検索文字列。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--all-pages (ブール値)

「pre-defined-templates」のコレクションの全ページを表示するために、複数のリクエストを実行します。

ibmcloud event-notifications pre-defined-templates \
    --instance-id=exampleString \
    --source=exampleString \
    --type=exampleString \
    --limit=10 \
    --offset=0 \
    --search=exampleString

SMTP構成

IBM Cloud Event Notifications SMTP 構成。

ibmcloud event-notifications smtp-configuration-create

新しいSMTP設定を作成します。

ibmcloud event-notifications smtp-configuration-create --instance-id INSTANCE-ID --name NAME --domain DOMAIN [--description DESCRIPTION]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--name (文字列)

SMTP設定の名称。 必須。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--domain (文字列)

ドメイン名。 必須。

最大長は512文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

--description (文字列)

SMTPの設定に関する説明。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

ibmcloud event-notifications smtp-configuration-create \
    --instance-id=exampleString \
    --name=exampleString \
    --domain=exampleString \
    --description=exampleString

ibmcloud event-notifications smtp-configurations

SMTP設定をすべてリストアップします。 注: --all-pages オプションが設定されていない場合、コマンドはコレクションの1ページのみを取得します。

ibmcloud event-notifications smtp-configurations --instance-id INSTANCE-ID [--limit LIMIT] [--offset OFFSET] [--search SEARCH]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--limit (int64)

ページ番号付き結果のページ限界。

デフォルト値は 10です。 最大値は 100 です。 最小値は 1 です。

--offset (int64)

ページ番号付き結果のオフセット。

デフォルト値は 0です。 最小値は 0です。

--search (文字列)

フィルタリング結果の検索文字列。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--all-pages (ブール値)

smtp-configurations のコレクションの全ページを表示するために、複数のリクエストを実行します。

ibmcloud event-notifications smtp-configurations \
    --instance-id=exampleString \
    --limit=10 \
    --offset=0 \
    --search=exampleString

ibmcloud event-notifications smtp-user-create

新しいSMTPユーザーを作成します。

ibmcloud event-notifications smtp-user-create --instance-id INSTANCE-ID --id ID [--description DESCRIPTION] [--username-to-clone USERNAME-TO-CLONE]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--description (文字列)

SMTPの設定に関する説明。

最大長は250文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--username-to-clone (文字列)

クローンするユーザーの名前を指定します。

最大長は20文字です。 最小文字数は 1 文字です。 値は正規表現/^[a-z0-9]{18}\\d{2}$/と一致する必要があります。

ibmcloud event-notifications smtp-user-create \
    --instance-id=exampleString \
    --id=exampleString \
    --description=exampleString \
    --username-to-clone=exampleString

ibmcloud event-notifications smtp-users

SMTPユーザーをすべてリストアップします。 注: --all-pages オプションが設定されていない場合、コマンドはコレクションの1ページのみを取得します。

ibmcloud event-notifications smtp-users --instance-id INSTANCE-ID --id ID [--limit LIMIT] [--offset OFFSET] [--search SEARCH]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--limit (int64)

ページ番号付き結果のページ限界。

デフォルト値は 10です。 最大値は 100 です。 最小値は 1 です。

--offset (int64)

ページ番号付き結果のオフセット。

デフォルト値は 0です。 最小値は 0です。

--search (文字列)

フィルタリング結果の検索文字列。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--all-pages (ブール値)

smtp-users のコレクションの全ページを表示するために、複数のリクエストを実行します。

ibmcloud event-notifications smtp-users \
    --instance-id=exampleString \
    --id=exampleString \
    --limit=10 \
    --offset=0 \
    --search=exampleString

ibmcloud event-notifications smtp-configuration

SMTP設定の詳細を取得します。

ibmcloud event-notifications smtp-configuration --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications smtp-configuration \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications smtp-configuration-update

SMTPの詳細を更新する。

ibmcloud event-notifications smtp-configuration-update --instance-id INSTANCE-ID --id ID [--name NAME] [--description DESCRIPTION]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--name (文字列)

SMTP名。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

--description (文字列)

SMTPの説明。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

ibmcloud event-notifications smtp-configuration-update \
    --instance-id=exampleString \
    --id=exampleString \
    --name=exampleString \
    --description=exampleString

ibmcloud event-notifications smtp-configuration-delete

SMTP設定を削除する。

ibmcloud event-notifications smtp-configuration-delete --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications smtp-configuration-delete \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications smtp-user

SMTP ユーザーの詳細を取得します。

ibmcloud event-notifications smtp-user --instance-id INSTANCE-ID --id ID --user-id USER-ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--user-id (文字列)

UserID. 必須。

最大長は256文字です。 最小長は5文字です。 値は正規表現/.*/と一致する必要があります。

ibmcloud event-notifications smtp-user \
    --instance-id=exampleString \
    --id=exampleString \
    --user-id=exampleString

ibmcloud event-notifications smtp-user-update

SMTPユーザーの詳細を更新する。

ibmcloud event-notifications smtp-user-update --instance-id INSTANCE-ID --id ID --user-id USER-ID [--description DESCRIPTION]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--user-id (文字列)

UserID. 必須。

最大長は256文字です。 最小長は5文字です。 値は正規表現/.*/と一致する必要があります。

--description (文字列)

SMTPユーザーの説明。

最大長は250文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z 0-9-_\/.?:'";,+=!#@$%^&*() ]*/と一致する必要があります。

ibmcloud event-notifications smtp-user-update \
    --instance-id=exampleString \
    --id=exampleString \
    --user-id=exampleString \
    --description=exampleString

ibmcloud event-notifications smtp-user-delete

SMTPユーザーを削除します。

ibmcloud event-notifications smtp-user-delete --instance-id INSTANCE-ID --id ID --user-id USER-ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--user-id (文字列)

UserID. 必須。

最大長は256文字です。 最小長は5文字です。 値は正規表現/.*/と一致する必要があります。

ibmcloud event-notifications smtp-user-delete \
    --instance-id=exampleString \
    --id=exampleString \
    --user-id=exampleString

ibmcloud event-notifications smtp-allowed-ips

SMTPが許可するIPの詳細を取得します。

ibmcloud event-notifications smtp-allowed-ips --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications smtp-allowed-ips \
    --instance-id=exampleString \
    --id=exampleString

ibmcloud event-notifications smtp-allowed-ips-update

注:レガシーなallowlistingのサポートは廃止予定です。 コンテキストベースの制限により、サポートが有効化されました。 詳細については、こちらをご覧ください。 https://cloud.ibm.com/docs/event-notifications?topic=event-notifications-en-smtp-configurations#en-smtp-configurations-cbr

ibmcloud event-notifications verify-smtp-update

SMTPのSPFとDKIMレコードを確認する。

ibmcloud event-notifications verify-smtp-update --instance-id INSTANCE-ID --id ID --type TYPE

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--id (文字列)

SMTP用の一意の識別子。 必須。

最大長は32文字です。 最小長は32文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--type (文字列)

SMTP認証の種類。 必須。

最大長は20文字です。 最小文字数は 1 文字です。 値は正規表現/.*/と一致する必要があります。

ibmcloud event-notifications verify-smtp-update \
    --instance-id=exampleString \
    --id=exampleString \
    --type=exampleString

メトリック

ibmcloud event-notifications metrics

指標を取得する。

ibmcloud event-notifications metrics ---instance-id INSTANCE-ID --gte GTE --lte LTE [--smtp-config-id SMTP-CONFIG-ID] [--destination-type DESTINATION-TYPE][--destination-id DESTINATION-ID] [--subscription-id SUBSCRIPTION-ID] [--source-id SOURCE-ID] [--email-to EMAIL-TO] [--notification-id NOTIFICATION-ID] [--subject SUBJECT]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--gte (文字列)

GTE(より大きい)、UTCでの開始タイムスタンプ。 必須。

最大長は28文字です。 最小文字数は 1 文字です。 値は正規表現/[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}Z/と一致する必要があります。

--lte (文字列)

LTE(less than equal)、UTCでのタイムスタンプの終了。 必須。

最大長は28文字です。 最小文字数は 1 文字です。 値は正規表現/[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}Z/と一致する必要があります。

--smtp-config-id (文字列)

SMTPの設定ID。 SMTP インターフェースの宛先に関するメトリクスを照会する際に必須です。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--destination-type (文字列)

メトリクスの取得が要求される宛先タイプ。 サポートされている値:smtp_custom。 カスタムメール送信先に関するメトリクスを照会する際に必須です。

使用できる値は、smtp_customです。

--destination-id (文字列)

宛先の固有の識別子。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--subscription-id (文字列)

サブスクリプションの固有の識別子。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--source-id (文字列)

ソースの固有の識別子。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

--email-to (文字列)

受信者のメールアドレス。

最大長は256文字です。 最小長は0文字です。 値は正規表現/[A-Za-z0-9\\._%+\\-]+@[A-Za-z0-9\\.\\-]+\\.[A-Za-z]{2,}/と一致する必要があります。

--notification-id (文字列)

通知ID。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--subject (文字列)

メールの件名。

最大長は256文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

ibmcloud event-notifications metrics \
    --instance-id=exampleString \
    --destination-type=smtp_custom \
    --gte=exampleString \
    --lte=exampleString \
    --destination-id=exampleString \
    --subscription-id=exampleString \
    --source-id=exampleString \
    --email-to=exampleString \
    --notification-id=exampleString \
    --subject=exampleString

ibmcloud event-notifications bounce-metrics

バウンス率を取得する。

ibmcloud event-notifications bounce-metrics --instance-id INSTANCE-ID --gte GTE --lte LTE [--smtp-config-id SMTP-CONFIG-ID] [--destination-type DESTINATION-TYPE] [--destination-id DESTINATION-ID] [--subscription-id SUBSCRIPTION-ID] [--source-id SOURCE-ID] [--email-to EMAIL-TO] [--notification-id NOTIFICATION-ID] [--subject SUBJECT] [--limit LIMIT] [--offset OFFSET]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`32`文字です。 最小長は`32`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/`と一致する必要があります。
--gte (文字列)

GTE(より大きい)、UTCでの開始タイムスタンプ。 必須。

最大長は28文字です。 最小文字数は 1 文字です。 値は正規表現/[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}Z/と一致する必要があります。

--lte (文字列)

LTE(less than equal)、UTCでのタイムスタンプの終了。 必須。

最大長は28文字です。 最小文字数は 1 文字です。 値は正規表現/[0-9]{1,4}-[0-9]{1,2}-[0-9]{1,2}T[0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2}Z/と一致する必要があります。

--smtp-config-id (文字列)

SMTPの設定ID。 SMTP インターフェースの宛先に関するメトリクスを照会する際に必須です。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--destination-type (文字列)

メトリクスの取得が要求される宛先タイプ。 サポートされている値:smtp_custom。 カスタムメール送信先に関するメトリクスを照会する際に必須です。

使用できる値は、smtp_customです。

--destination-id (文字列)

宛先の固有の識別子。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--subscription-id (文字列)

サブスクリプションの固有の識別子。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--source-id (文字列)

ソースの固有の識別子。

最大長は100文字です。 最小文字数は 1 文字です。 値は正規表現/[a-zA-Z0-9-:_]*/と一致する必要があります。

--email-to (文字列)

受信者のメールアドレス。

最大長は256文字です。 最小長は0文字です。 値は正規表現/[A-Za-z0-9\\._%+\\-]+@[A-Za-z0-9\\.\\-]+\\.[A-Za-z]{2,}/と一致する必要があります。

--notification-id (文字列)

通知ID。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

--subject (文字列)

メールの件名。

最大長は256文字です。 最小長は0文字です。 値は正規表現/[a-zA-Z0-9]/と一致する必要があります。

--limit (int64)

ページ番号付き結果のページ限界。

デフォルト値は 10です。 最大値は 100 です。 最小値は 1 です。

--offset (int64)

ページ番号付き結果のオフセット。

デフォルト値は 0です。 最小値は 0です。

ibmcloud event-notifications bounce-metrics \
    --instance-id=exampleString \
    --destination-type=smtp_custom \
    --gte=exampleString \
    --lte=exampleString \
    --destination-id=exampleString \
    --subscription-id=exampleString \
    --source-id=exampleString \
    --email-to=exampleString \
    --notification-id=exampleString \
    --subject=exampleString \
    --limit=10 \
    --offset=0

通知ステータスの取得

このドキュメントでは、Webhook Destination Test 通知の通知ステータスを取得するためのペイロードの詳細について説明します。

ibmcloud event-notifications notifications-status

Webhookの送信先に送信されたテスト通知のステータスを取得します。 このコマンドは、Webhookのテスト通知の配信状況を取得するために特に使用されます。

ibmcloud event-notifications notifications-status --instance-id INSTANCE-ID --id ID

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`32`文字です。 最小長は`32`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/`と一致する必要があります。
--id (文字列)

Webhookの送信先をテストした際に返される通知ID。 このIDは、Webhookの送信先へ送信されるテスト通知に固有のものです。 必須。

最大長は36文字です。 最小長は36文字です。 値は正規表現/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/と一致する必要があります。

ibmcloud event-notifications notifications-status \
    --instance-id=exampleString \
    --id=exampleString

通知の送信

このドキュメントでは、 Event Notifications に記載されている API ソースを使用してイベントを送信する際のペイロードの詳細について説明します。 API ソースを使用して、バックエンド・アプリケーションからイベントを送信できます。 Event Notifications HTTP への呼び出しには、2つのモードがサポートされています。 これは、 CloudEvents 仕様に準拠しています。 これらのモードは、バイナリモードと構造化モードです。 詳細はこちら - https://github.com/cloudevents/spec。「バイナリコンテンツモード」では、イベントデータの値は HTTP リクエストまたはレスポンスの本文にそのまま格納され、datacontenttype属性の値によって HTTP のContent-Typeヘッダーでそのメディアタイプが宣言されます。その他のすべてのイベント属性は、 HTTP ヘッダーにマッピングされます。 すべての属性名には「ce-」という接頭辞が付与され、ヘッダーに追加されます(data および datacontenttype を除く)。 CloudEventsの必須属性(specversion、id、type、source)がヘッダーの一部として渡された場合、リクエストはバイナリモードとして処理されます。 構造化モード。 構造化コンテンツモードでは、イベントのメタデータ属性とイベントデータが、 HTTP のリクエスト本文に格納されます。 構造化モードの場合は、Content-Typeヘッダーをapplication/cloudevents+jsonに設定します。 CloudEventsの必須属性(specversion、id、type、およびsource)は、リクエストボディの一部として必要です。 さらに、IDデータは必須のデータコンテンツタイプとして提供されます。 私たちは、datacontenttypeを「application/json」としてのみサポートしています。

ibmcloud event-notifications send-notifications

インスタンスから通知本文を送信します。 Event Notificationsのペイロードに関する詳細情報 はこちらをご覧ください

ibmcloud event-notifications send-notifications --instance-id INSTANCE-ID [--body BODY]

コマンド・オプション

--instance-id (文字列)

IBMクラウド・イベント通知インスタンスの固有の識別子。 必須。

 最大長は`256`文字です。 最小長は`10`文字です。 値は正規表現`/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]/`と一致する必要があります。
--body (NotificationCreate)

通知作成リクエストを説明するペイロード。

JSON文字列オプションを提供するか、または @ で始まるファイルパスオプションを指定して、読み込むJSONファイルを指定します。例えば、 --body=@path/to/file.json

NotificationCreate

次の例は、 NotificationCreate オブジェクトの形式を示しています。

{
  "specversion" : "1.0",
  "time" : "2019-01-01T12:00:00.000Z",
  "id" : "exampleString",
  "source" : "exampleString",
  "type" : "exampleString",
  "ibmenseverity" : "exampleString",
  "ibmensourceid" : "exampleString",
  "ibmendefaultshort" : "exampleString",
  "ibmendefaultlong" : "exampleString",
  "ibmensubject" : "exampleString",
  "ibmentemplates" : "[\"886f8f4c-8605-47hb-85a1-8682b9377468483\"]",
  "ibmenmailto" : "exampleString",
  "ibmenslackto": "[\"sgjhgsjaS\",\"agjhgsjaS\"]",
  "ibmensmsto" : "exampleString",
  "ibmenmms": {"content": "VBORw0KGgoAAAANSUhEUgAAAFoAAAA4CAYAAAB9lO","content_type": "image/png"},
  "ibmenmarkdownn": "This is a *italic* message.\n- Item 1\n- Item 2\n**bold text** with more text data\n~~strike through~~\n1. order 1\n2. order 2\n```fenced code block```\n> block code\n`code`\n[Click here](https://example.com) for more info."
  "ibmenhtmlbody" : "exampleString",
  "subject" : "exampleString",
   "attachments": [
    {
      "content": "VGhpcyBpcyBhIHRlc3QgZG9jdW1lbnQK",
      "filename": "test.txt",
      "content_type": "text/plain",
      "disposition": "attachment"
    }
  ],
  "data" : {
    "anyKey" : "anyValue"
  },
  "datacontenttype" : "application/json",
  "ibmenpushto" : "{
    \"fcm_devices\" : [ \"exampleString\" ],
    \"apns_devices\" : [ \"exampleString\" ],
    \"huawei_devices\" : [ \"exampleString\" ],
    \"safari_devices\" : [ \"exampleString\" ],
    \"chrome_devices\" : [ \"exampleString\" ],
    \"firefox_devices\" : [ \"exampleString\" ],
    \"user_ids\" : [ \"exampleString\" ],
    \"tags\" : [ \"exampleString\" ],
    \"platforms\" : [ \"push_android\" ]
  }",
  "ibmenfcmbody" : "{ }",
  "ibmenapnsbody" : "{ }",
  "ibmenapnsheaders" : "{ }",
  "ibmenchromebody" : "{ }",
  "ibmenchromeheaders" : "{ }",
  "ibmenfirefoxbody" : "{ }",
  "ibmenfirefoxheaders" : "{ }",
  "ibmenhuaweibody" : "{ }",
  "ibmensafaribody" : "{ }"
}

必要なパラメータを指定して:

ibmcloud event-notifications send-notifications \
    --instance-id=exampleString \
    --body='{"specversion": "1.0", "time": "2019-01-01T12:00:00.000Z", "type": "*", "id": "exampleString", "source": "exampleString", "ibmensourceid": "exampleString", "ibmendefaultshort": "short message", "ibmendefaultlong": "long message", "data": {"name": "exampleString"}, "datacontenttype": "application/json"}'

すべてのパラメータを含む場合:

ibmcloud event-notifications send-notifications \
    --instance-id=exampleString \
    --body='{"specversion": "1.0", "time": "2019-01-01T12:00:00.000Z", "id": "exampleString", "source": "exampleString", "type": "exampleString", "ibmenseverity": "exampleString", "ibmensourceid": "exampleString", "ibmendefaultshort": "exampleString", "ibmendefaultlong": "exampleString", "ibmensubject": "exampleString", "ibmentemplates": [\"template-id\"], "ibmenmailto": "exampleString","ibmenslackto": "[\"sgjhgsjaS\",\"agjhgsjaS\"]", "ibmensmsto": "exampleString","ibmenmms": "{\"content\": \"VBORw0KGgoAAAANSUhEUgAAAFoAAAA4CAYAAAB9lO\",\"content_type\": \"image/png\"}", "ibmenhtmlbody": "exampleString", "subject": "exampleString", "data": {"anyKey": "anyValue"}, "datacontenttype": "application/json", "ibmenpushto": "{\"fcm_devices\": [\"exampleString\"], \"apns_devices\": [\"exampleString\"], \"huawei_devices\": [\"exampleString\"], \"safari_devices\": [\"exampleString\"], \"chrome_devices\": [\"exampleString\"], \"firefox_devices\": [\"exampleString\"], \"user_ids\": [\"exampleString\"], \"tags\": [\"exampleString\"], \"platforms\": [\"push_android\"]}", "ibmenfcmbody": "{}", "ibmenapnsbody": "{}", "ibmenapnsheaders": "{}", "ibmenchromebody": "{}", "ibmenchromeheaders": "{}", "ibmenfirefoxbody": "{}", "ibmenfirefoxheaders": "{}", "ibmenhuaweibody": "{}", "ibmensafaribody": "{}"}'

IOS 通知用に構成できるその他のプロパティー

iOS
プロパティー (Property) プロパティー・タイプ 説明
badge 整数 アプリケーション・アイコンのバッジとして表示する番号。
interactive_category ストリング 対話式プッシュ通知に使用されるカテゴリー ID。
ios_action_key ストリング アクション・キーのタイトル。
payload JSON オブジェクト 通知メッセージの一部として送信されるカスタム JSON ペイロード。
sound ストリング アプリケーション・バンドル内の音声ファイルの名前。 このファイルの音声がアラートとして再生されます。
title_loc_key ストリング 現在利用されているローカリゼーションに対応する Localizable.strings ファイルに含まれるタイトル・ストリングに対するキー。 キー・ストリングは、titleLocArgs 配列で指定された変数を取り込むために、%@ および %n$@ の指定子を使用してフォーマット設定できます。
loc_key ストリング (ユーザーの言語設定によって指定された) 現在利用されているローカリゼーションに対応する Localizabl.strings ファイルに含まれるアラート・メッセージ・ストリングに対するキー。 キー・ストリングは、locArgs 配列で指定された変数を取り込むために、%@ および %n$@ の指定子を使用してフォーマット設定できます。
launch_image ストリング アプリバンドル内の画像ファイルのファイル名。ファイル名の拡張子の有無は問わない。 このイメージは、ユーザーがアクション・ボタンをタップした時、またはアクション・スライダーを移動した時に起動イメージとして使用されます。
title_loc_args ストリング title-loc-key 内のフォーマット指定子の代わりに表示される変数ストリング値。
loc_args ストリング locKey 内のフォーマット指定子の代わりに表示される変数ストリング値。
title ストリング リッチ・プッシュ通知のタイトル (iOS 10 以上のみでサポートされます)。
subtitle ストリング リッチ通知のサブタイトル (iOS 10 以上でのみサポートされます)。
body ストリング iOS 通知用の本文。
attachment_url ストリング iOS 通知メディアへのリンク (ビデオ、オーディオ、GIF、イメージ - iOS 10 以上のみでサポートされます)。
type ストリング 許容値: DEFAULT、MIXED、SILENT。
apns_collapse_id ストリング 同じ縮小 ID を持つ複数の通知は、1 つの通知としてユーザーに表示されます。
apns_thread_id ストリング 関連する通知をグループ化するためのアプリ特有の ID。 この値は、UNNotificationContent オブジェクトの threadIdentifier プロパティーに対応します。
apns_group_summary_arg ストリング 通知によってカテゴリーのサマリー・フォーマット・ストリングに追加されるストリング。
apns_group_summary_arg_count 整数 通知によってカテゴリーのサマリー・フォーマット・ストリングに追加される項目数。

FCM 通知用に構成できる追加のプロパティー

Androidプラットフォームの設定
プロパティー (Property) プロパティー・タイプ 説明
icon ストリング 通知に対して表示されるアイコンの名前を指定します。 このアイコンが既にクライアント・アプリケーションと共にパッケージされていることを確認してください。
delay_while_idle ブール値 true に設定した場合、このパラメーターは、デバイスがアクティブになるまでメッセージを送信しないことを示します。
sync ブール値 デバイス・グループ・メッセージングは、グループ内のすべてのアプリ・インスタンスが最新メッセージング状態を反映することを可能にします。
visibility ストリング 「非公開」または「公開」 - この通知の表示設定。この設定により、セキュリティロック画面上で通知がどのように、いつ表示されるかが決まります。
redact ストリング 可視性が「非公開」に設定されている場合、指定されたコンテンツは、デバイス上のセキュア・ロック画面に表示されます。
payload JSON オブジェクト 通知メッセージの一部として送信されるカスタム JSON ペイロード。
priority ストリング この通知の優先順位を示すストリング値。 許容値は、「max」、「high」、「default」、「low」、「min」です。 「sound」フィールドが設定されていて、優先順位が High/Max の通知は、Android 5.0 または higher.sampleval='low' での注意喚起通知に使用できます。
sound ストリング 通知がデバイスに到着したときに再生が試行される (デバイス上の) 音声ファイル。
time_to_live 整数 デバイスがオフラインの場合に GCM ストレージにメッセージを保持する期間 (秒単位) を指定します。
lights プッシュ通知の受信時に通知 LED の色を設定します。
ledArgb ストリング LED の色。 ハードウェアはできる限りの近似を行います。
ledOnMs 整数 LED が明滅している間にオンになる時間 (ミリ秒)。 ハードウェアはできる限りの近似を行います。
ledOffMs ストリング LED が明滅している間にオフになる時間 (ミリ秒)。 ハードウェアはできる限りの近似を行います。
android_title ストリング リッチ・プッシュ通知のタイトル。
group_id ストリング この通知が、同じキーを共有する通知グループに属するように設定します。 グループ化された通知は、その種のレンダリングをサポートするデバイスのクラスターまたはスタックに表示できます。
style Android の展開可能な通知に指定するオプション。 展開可能な通知のタイプは、picture_notification、bigtext_notification、inbox_notification です。
type ストリング 展開可能な通知のタイプを指定します。 指定できる値は、bigtext_notification、picture_notification、inbox_notification です。
title ストリング 通知のタイトルを指定します。 タイトルは通知が展開されると表示されます。 タイトルは、展開可能な 3 つの通知のすべてで指定される必要があります。
type ストリング 許可される値: DEFAULT、SILENT。
alert ストリング 通知のアラート値。

CLI を使用した Event Notifications プロビジョニングのサンプル・スクリプト

スクリプトは provision_event_notification.sh スクリプトは、 Event Notifications インスタンスのプロビジョニングと設定を自動化します。

CLIを使用したプラットフォーム通知統合のサンプルスクリプト

この en-platform-notification-src-and-email-dest.sh スクリプトは Platform Notifications を Event Notifications と統合し、 IBM Inbuilt Email または Custom Domain Sandbox に通知をルーティングします。

CLI を使用した IBM Cloud Logs 統合用サンプル・スクリプト

スクリプトは en-icl-src-and-email-dest.sh スクリプトは IBM Cloud Logs を Event Notifications と統合し、通知を IBM 内蔵メールまたはカスタムドメインサンドボックスに送ります。

このスクリプトは、 IBM Cloud Logs インスタンスと Event Notifications インスタンスが同じアカウントあることを前提としている。

CLI のバージョン履歴

Event Notifications プラグインの各バージョンの変更の要約を示します。 使用可能なすべてのコマンドとそのオプションを使用できるように、CLI を最新の状態に保ちます。

0.0.5 から 1.9.0 までの CLI プラグインのバージョンは非推奨となります。

の変更点IBM Cloud Event NotificationsCLI
バージョン リリース日 変更
1.5.0 2024年5月10日 SMTP設定とSlackテンプレートのサポート。
1.6.0 1 2024年8月 CF 宛先は非推奨となり、MMS がサポートされるようになりました。
1.7.0 9 2024年8月 メトリクスへの対応とSMTPへの対応の廃止により、SMTP設定からIPアドレスが許可されました。
1.8.0 9 2024年9月 SlackのDM宛先への対応。
1.9.0 2024年10月11日 Webhookテンプレートをサポート。
1.10.0 2024年11月4日 Cloud Functionsのサポートを終了
1.11.0 2025年1月7日 周期的タイマーのサポート
1.12.0 2025年2月27日 Pagerdutyテンプレート対応
1.13.0 2025年3月6日 Event Streams 宛先、サブスクリプション、テンプレートをサポート。
1.14.0 2025年4月28日 PagerDuty 宛先の非推奨パラメータ はオプションとしてマークされています。 api_key
1.15.0 27 2025年6月 通知用のマークダウン・コンテンツ。
1.16.0 1 2025年8月 Code Engine および定義済みテンプレートのサポート。
1.17.0 4 2025年9月 ウェブフック・デスティネーション・テストのget notifications-statusコマンドをサポートした
1.18.0 2025年9月25日 アプリの設定先、サブスクリプション、テンプレートのサポート
1.19.0 2025年10月30日 クローンsmtpユーザー認証情報のサポート
1.20.0 2025年12月15日 バウンス指標のサポート
1.20.1 2026年1月19日 のプライベートエンドポイントサポートのメタデータとENプラグインのインストールに関する問題を修正した。 private.cloud.ibm.com
1.20.2 2026年2月18日 CLIプラグインの脆弱性修正パッチ更新
1.21.0 2026年4月7日 CLIプラグインが更新され、ペイロードデバッグのためのビューサンドボックス、電子メール添付ファイル、ソースオプションがサポートされました
1.21.1 2026年5月25日 initとshowコマンドを非推奨とし、enインスタンス一覧コマンドを追加。 設定されたターゲット地域に応じてENエンドポイントを自動的に設定するように修正された。
1.21.2 2026年6月29日 SMTP メトリクスのバグ修正:SMTP 設定 ID フラグに対応し、宛先タイプをオプションとして指定できるようにしました。
1.21.3 2026年8月6日 CLIプラグインの脆弱性修正、使いやすさの向上および外観の改善