Getting specific notification profile information

Ops Center Analyzer REST API Reference Guide

Version
11.0.x
Audience
anonymous
Part Number
MK-99ANA003-18

You can obtain information about a specific notification profile, such as the profile name and the notification event level.

Execution permission

Admin, Modify

Request line

GET baseURL/v1/objects/NotificationProfile/{id}

Request body

Not applicable.

Response body

The structure of the response body and the object attributes is as follows:

NotificationProfile

{
        "instanceID":"...",
        "profileName":"...",
        "description":"...",
        "notificationEventLevels":["...", ...],
        "useAllCategory":"...",
        "notificationCategories":["...", ...],
        "mailRecipientType":"..."
}

NotificationProfile (Type: NotificationProfile)

Attribute

Type

Description

instanceID

string

ID of the condition profile for the notification condition

profileName

string

Name of the condition profile for the notification condition

description

string

Description

notificationEventLevels

enum[]

Event level of the events to be reported

(For details about the valid values, see the table EventSeverityType in List of enumerators.)

useAllCategory

boolean

Whether or not to use all event categories as notification conditions. To use all event categories as notification conditions, specify "true". To use only specific event categories as notification conditions, specify "false".

notificationCategories

enum[]

Category of the events that can be used in notification conditions. Specify this item only if useAllCategory is "false".

(For details about the valid values, see the table EventCategoryType in List of enumerators.)

mailRecipientType

enum

Email transmission type

(For details about the valid values, see the table MailRecipientType in List of enumerators.)

  • TO
  • CC
  • BCC

Status codes

Status code

Reason phrase

Description

200

OK

Success.

401

Unauthorized

No login privilege.

404

Not Found

The resource was not found.

412

Precondition Failed

The server is not available.

500

Internal Server Error

Server processing error.

Example code

[Request Header]
GET /Analytics/v1/objects/NotificationProfile/notificationProfile%23a5911a22-d0ec-4ec4-bff3-b178b644a342
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
Host: localhost:22015
Accept: application/json
Content-Type: application/json

[Response Header]
HTTP/1.1 200 OK
Date: Thu, 11 Aug 2016 17:55:27 GMT
Server: Cosminexus HTTP Server
Cache-Control: no-cache
WWW-Authenticate: HSSO 8113b75377dac59b7c48ee2b947b20d3bbc11f_YXZvNFIMehp3UB4jbmVyPGUgT3Q=_V0810
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Transfer-Encoding: chunked
Content-Type: application/json


[Response Body]
{
  "instanceID" : "notificationProfile#a5911a22-d0ec-4ec4-bff3-b178b644a342",
  "profileName" : "Profile Name@20160812025527839",
  "description" : "description",
  "notificationEventLevels" : [ "CRITICAL", "WARNING" ],
  "useAllCategory" : false,
  "notificationCategories" : [ "PERFORMANCE" ],
  "mailRecipientType" : "TO"
}