アラート通知用の連絡先を作成します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
sysom:CreateAlertDestination |
create |
*すべてのリソース。
|
なし | なし |
リクエスト構文
POST /api/v1/alertPusher/alert/createDestination HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| body |
object |
任意 |
リクエストボディ。 |
|
| app_id |
string |
任意 |
||
| app_secret |
string |
任意 |
||
| group_id |
array |
任意 |
||
|
string |
任意 |
|||
| imbot |
boolean |
任意 |
||
| name |
string |
任意 |
アラート連絡先の名前。 |
test_name |
| params |
object |
任意 |
アラート連絡先の構成パラメーター。 |
|
|
string |
任意 |
メールアドレス。 |
xxx@email.com |
|
| phone |
string |
任意 |
電話番号。 |
1xxx |
| sec |
string |
任意 |
Chatbot のシークレットキー。 |
SECxxx |
| webhook |
string |
任意 |
Chatbot の Webhook URL。 |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| source |
string |
任意 |
構成ソース。 |
console |
| target |
string |
任意 |
通知対象。現在、DingTalk Chatbot のみがサポートされています。 |
dingtalk |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答のスキーマ。 |
||
| code |
string |
エラーコード。 |
Success |
| data |
object |
返されるデータ。 |
|
| createdAt |
integer |
連絡先が作成された時間。 |
1753669116286 |
| id |
integer |
ポリシーの ID。 |
1 |
| name |
string |
ポリシー名。 |
SysOM |
| params |
object |
アラート連絡先の構成パラメーター。 |
|
|
string |
メールアドレス。 |
xxx@email.com |
|
| phone |
string |
電話番号。 |
1xxx |
| sec |
string |
Chatbot のシークレットキー。 |
SECxxx |
| webhook |
string |
Chatbot の Webhook URL。 |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| source |
string |
構成ソース。 |
console |
| target |
string |
通知対象。現在、DingTalk Chatbot のみがサポートされています。 |
dingtalk |
| uid |
string |
ユーザーの ID。 |
1222933234714935 |
| updatedAt |
integer |
連絡先が最後に更新された時間。 |
1751254826285 |
| message |
string |
エラーメッセージ。
|
SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict |
| requestId |
string |
リクエストの ID。 |
2D693121-C925-5154-8DF6-C09A8B369822 |
例
成功レスポンス
JSONJSON
{
"code": "Success",
"data": {
"createdAt": 1753669116286,
"id": 1,
"name": "SysOM",
"params": {
"email": "xxx@email.com",
"phone": "1xxx",
"sec": "SECxxx",
"webhook": "https://oapi.dingtalk.com/robot/send?access_token=xxx"
},
"source": "console",
"target": "dingtalk",
"uid": "1222933234714935",
"updatedAt": 1751254826285
},
"message": "SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. | |
| 400 | SysomOpenAPI.ServerError | Server error, please correct the code according to the error message. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。