获取消息通知配置
功能介绍
获取消息通知配置。
URI
GET /v5/notification-settings/{notification_setting_id}
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
notification_setting_id |
是 |
String |
消息通知配置的唯一标识符。 最小长度:1 最大长度:36 |
请求参数
无
响应参数
状态码:200
参数 |
参数类型 |
描述 |
---|---|---|
id |
String |
消息通知配置的唯一标识符。 |
urn |
String |
消息通知配置的唯一资源标识符。 |
analyzer_id |
String |
分析器的唯一标识符。 |
analyzer_name |
String |
分析器的名称。 |
analyzer_type |
String |
分析器的类型。
|
mc_switch |
Boolean |
是否开启消息中心通知开关。 |
smn_topic_urns |
Array of strings |
消息通知配置的SMN主题URN列表。 |
created_at |
String |
创建消息通知配置的时间。 |
updated_at |
String |
上次更新消息通知配置的时间。 |
状态码:400
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码。 |
error_msg |
String |
错误信息。 |
request_id |
String |
请求 ID。 |
encoded_authorization_message |
String |
鉴权信息。 |
状态码:403
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码。 |
error_msg |
String |
错误信息。 |
request_id |
String |
请求 ID。 |
encoded_authorization_message |
String |
鉴权信息。 |
状态码:404
参数 |
参数类型 |
描述 |
---|---|---|
error_code |
String |
错误码。 |
error_msg |
String |
错误信息。 |
request_id |
String |
请求 ID。 |
encoded_authorization_message |
String |
鉴权信息。 |
请求示例
获取消息通知配置。
GET https://{hostname}/v5/notification-settings/{notification_setting_id}
响应示例
状态码:200
OK
{ "id" : "{notification_setting_id}", "urn" : "AccessAnalyzer:{region_id}:{domain_id}:notificationSetting:{notification_setting_id}", "analyzer_id" : "3de500b3f6c74b0a8ef170656f8a6376", "analyzer_type" : "account", "analyzer_name" : "external_analyzer_1", "mc_switch" : true, "smn_topic_urns" : [ "urn:smn:cn-north-7:******:test1" ], "created_at" : "2023-09-07T08:04:41.698Z", "updated_at" : "2023-09-07T08:04:41.698Z" }
状态码
状态码 |
描述 |
---|---|
200 |
OK |
400 |
Bad request |
403 |
Forbidden |
404 |
NotFound |
错误码
请参见错误码。