Get Unresolved Messages¶
Get the list of unresolved messages that are reported for the applications.
Operation Permissions¶
User login to Application Portal is not required.
Prerequisites¶
Your organization has purchased the applications.
Request Format¶
POST https://{apigw-address}/app-portal-service/v2.0/message/unresolved/list
Request Parameters (Body)¶
Name |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
accessKey |
Mandatory |
String |
The service account of the application. The application authenticates with |
orgId |
Mandatory |
String |
The organization ID. How to get orgId>> |
pagination |
Optional |
Pagination Request Struct |
Lists the paging requirements in a request. If not specified, the default pagination size is 1000 pages, starting from 0. For more details, see Pagination Request Struct |
Response Parameters¶
Name |
Data Type |
Description |
---|---|---|
data |
Data Struct |
The pagination and list of unresolved messages. |
Data Struct¶
Name |
Data Type |
Description |
---|---|---|
pagination |
Pagination Struct |
The pagination information. |
ids |
List<String> |
The list of message IDs. |
Samples¶
Request Sample¶
url: https://{apigw-address}/app-portal-service/v2.0/message/unresolved/list
method: POST
requestBody:
{
"accessKey":"624a8374-xxxx-xxxx-xxxx-ebabadec4524",
"orgId":"yourOrgId",
"pagination":{
"pageNo":0,
"pageSize":1000
}
}
Return Sample¶
{
"code": 200,
"message": "",
"data": {
"pagination": {
"total": 15094,
"currentPage": 0,
"limit": 1000
},
"ids": [
"cjj-1",
"cjj01",
"cjj010",
"cjj011",
"cjj012",
"..."
]
}
}
Java SDK Sample¶
public class AppPortalSdkTest{
@Test
public void getUnresolvedMessagesTest() {
UnresolvedMessageListRequest request=new UnresolvedMessageListRequest("your_access_token","your_org_id");
UnresolvedMessageListResponse response=Poseidon.config(PConfig.init().appKey("your_access_key").appSecret("your_secret_key").debug())
.url("https://{apigw-address}").getResponse(request,UnresolvedMessageListResponse.class);
assertNotNull("response data should not be null", response.data);
}
}