You can obtain information about a specific email address, such as the assigned notification profile.
Execution permission
Admin, Modify
Request line
GET baseURL/v1/objects/MailAddress/{id}
Request body
Not applicable.
Response body
The structure of the response body and the object attributes is as follows:MailAddress
{
"instanceID":"...",
"email":"...",
"isActive":"...",
"description":"...",
"assignedConditionProfilesIDs":["...", ...],
"assignedConditionProfiles":["...", ...]
}
MailAddress (Type: MailAddress)
|
Attribute |
Type |
Description |
|---|---|---|
|
instanceID |
string |
ID of the mail address |
|
|
string |
Mail address |
|
isActive |
boolean |
Whether or not the email addresses are enabled as notification destinations. For enabled addresses, "true" is set. For disabled addresses, "false" is set. |
|
description |
string |
Description |
|
assignedConditionProfilesIDs |
string[] |
ID of the condition profile for the notification condition in which this email address is specified as the destination address |
|
assignedConditionProfiles |
string[] |
Name of the condition profile for the notification condition in which this email address is specified as the destination address |
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/MailAddress/mailAddress%23b2dd1785-bc8a-4cb2-90d2-cd6a41aab82c
Authorization: Basic c3lzdGVtOm1hbmFnZXI=
Host: localhost:22015
Accept: application/json
Content-Type: application/json
[Response Header]
HTTP/1.1 200 OK
Date: Wed, 03 Aug 2016 02:02:33 GMT
Server: Cosminexus HTTP Server
Cache-Control: no-cache
WWW-Authenticate: HSSO a61560c2eac97b0564aec48d2883daf39c0dfdf_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" : "mailAddress#b2dd1785-bc8a-4cb2-90d2-cd6a41aab82c",
"email" : "admin@example.com",
"isActive" : true,
"description" : "description",
"assignedConditionProfilesIDs" : [ ],
"assignedConditionProfiles" : [ ]
}