通知テンプレートの取得
get
/api/v2/notification_templates/{id}/
このリソースに対してGETリクエストを行って、次のフィールドを含む単一の通知テンプレート・レコードを取得します。
id
: この通知テンプレートのデータベースID。(整数)type
: この通知テンプレートのデータ型。(選択)url
: この通知テンプレートのURL。(文字列)related
: 関連リソースのURLを含むデータ構造。(オブジェクト)summary_fields
: 関連リソースの名前/説明を含むデータ構造。 一部のオブジェクトの出力は、パフォーマンス上の理由によって制限される場合があります。(オブジェクト)created
: この通知テンプレートが作成されたときのタイムスタンプ。(日時)modified
: この通知テンプレートが最後に変更されたときのタイムスタンプ。(日時)name
: この通知テンプレートの名前。(文字列)description
: この通知テンプレートのオプションの説明。(文字列)organization
: (id)notification_type
: (選択)email
: 電子メールgrafana
: Grafanairc
: IRCmattermost
: Mattermostpagerduty
: Pagerdutyrocketchat
: Rocket.Chatslack
: Slacktwilio
: Twiliowebhook
: Webフック
notification_configuration
: (json)messages
: 通知テンプレートのオプションのカスタム・メッセージ。(json)
リクエスト
サポートされているメディア・タイプ
- application/json
パス・パラメータ
先頭に戻る
レスポンス
サポートされているメディア・タイプ
- application/json
200レスポンス
ルート・スキーマ : NotificationTemplate
型:
ソースを表示
object
- created: string
タイトル:
Created
読取り専用:true
- description: string
タイトル:
Description
- id: integer
タイトル:
ID
読取り専用:true
- messages: object Messages
タイトル:
Messages
通知テンプレートのオプションのカスタム・メッセージ。 - modified: string
タイトル:
Modified
読取り専用:true
- name(required): string
タイトル:
Name
最小長:1
最大長:512
- notification_configuration: object Notification configuration
タイトル:
Notification configuration
- notification_type(required): string
タイトル:
Notification type
指定できる値:[ "email", "grafana", "irc", "mattermost", "pagerduty", "rocketchat", "slack", "twilio", "webhook" ]
- organization(required): integer
タイトル:
Organization
- related: string
- summary_fields: string
タイトル:
Summary fields
読取り専用:true
- type: string
タイトル:
Type
読取り専用:true
- url: string
タイトル:
Url
読取り専用:true
ネストされたスキーマ : メッセージ
型:
object
タイトル:
Messages
通知テンプレートのオプションのカスタム・メッセージ。
デフォルト値:
{ }
ネストされたスキーマ : 通知構成
型:
object
タイトル:
Notification configuration