Obtaining a Message Notification Configuration
Function
This API is used to obtain a message notification configuration.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
AccessAnalyzer:notificationSetting:get |
Read |
notificationSetting * |
- |
- |
- |
URI
GET /v5/notification-settings/{notification_setting_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
notification_setting_id |
Yes |
String |
Unique identifier of the message notification configuration. Minimum: 1 Maximum: 36 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Unique identifier of the message notification configuration. |
|
urn |
String |
Unique resource identifier of the message notification configuration. |
|
analyzer_id |
String |
Unique identifier of an analyzer |
|
analyzer_name |
String |
Name of an analyzer |
|
analyzer_type |
String |
Type of an access analyzer.
|
|
mc_switch |
Boolean |
Whether to enable message notifications. |
|
smn_topic_urns |
Array of strings |
URN list of SMN topics configured for message notifications. |
|
created_at |
String |
Time when the message notification configuration is created. |
|
updated_at |
String |
Time when the message notification configuration was last updated. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Example Requests
Obtaining a message notification configuration
GET https://{hostname}/v5/notification-settings/{notification_setting_id}
Example Responses
Status code: 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"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad request |
|
403 |
Forbidden |
|
404 |
NotFound |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot