Oracle® Communications Diameter Signaling Router Service Capability Exposure Function User's Guide Release 8.4 F12301-02 |
|
![]() Previous |
![]() Next |
When a partner application is created, the operator needs to approve (or reject) the request. This can be done using either the GUI interface or REST interface.
Approve a Partner Application Using the GUI
The screen displays all requests pending an approval.
Approve a Partner Application Using
The partner application approval using REST is a three step process involving getting the notification, approving the request, and updating the notification status.
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Notification.html.
An example of the notification request and response follow:
GET /portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/listNotificationsByStatus/UNREAD HTTP/1.1 Host: 10.75.244.188:9001 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://10.75.244.188:9001/portal/partner/index/partnerMain.html AuthorizationX: Basic cGFydG5lcjE6e0FFU301Z2Q1UFpwcDZVTmJHdkxrRnBPSXpuMDNMNGxNeDRDZUpCcnBQTjJYaXZrPQ== X-Requested-With: XMLHttpRequest Connection: keep-alive
HTTP/1.1 200 OK Date: Wed, 31 Jan 2018 05:50:57 GMT Content-Length: 9447 Content-Type: application/json X-FRAME-OPTIONS: DENY {"ListNotificationsByStatusResponse":{"return":[{"id":"113e1904-8419-4cd2-958a-659a950aba6c", "content":"Partner Create Application Task","date":"01/31/2018","receiver":"PM", "sender":"partner1","senderCompany":"oracle","redirectObject":{"type":"ns4:application", "notificationId":"113e1904-8419-4cd2-958a-659a950aba6c","applicationID":"fa789e8d-9b97-455a-b556-491ed5253da5", "applicationName":"mmitestapp1","partnerName":"partner1","partnerCompany":"oracle", "description":"mmi testing application 1","applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd", "apiName":"3gpp_t8_nidd","accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","needReadContract":false}], "trafficUser":"partner1_mmitestapp1","trafficPassword": "{AES}UEYOH2WTIo5Kwgodl7uFtmMCr5oLLBTz3H6jQ4jK5j9AoPdBhjYJiqtqpvB86IuYwNybnTP+x3hTAgn/UTLrUw==", "submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00","effectiveTo":"2018-03-28-04:00", "status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED","quota":{"days":1,"limitExceedOK":true, "qtaLimit":10000},"rate":{"reqLimit":10,"timePeriod":1},"icon":"expressive/app.png"}, "status":"UNREAD"},{"id":"9bdc365a-40fd-496c-9cff-dd1ec805dd18","content":"Partner Delete Pending Application Task", "date":"01/31/2018","receiver":"PM","sender":"partner1","senderCompany":"oracle", "redirectObject":{"type":"ns4:application","notificationId":"9bdc365a-40fd-496c-9cff-dd1ec805dd18", "applicationID":"60c5e194-ad46-4935-ba78-4777bab65eaf","applicationName":"mmitestapp1", "partnerName":"partner1","partnerCompany":"oracle","description":"mmi testing application 1", "applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd","apiName":"3gpp_t8_nidd", "accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","applicationMethodSLAs":[{"methodName":"", "interfaceName":"57cf5ce0-a175-43d2-a1f4-53fb3ebae851", "quota":{"days":0,"limitExceedOK":false,"qtaLimit":0},"rate":{"reqLimit":0,"timePeriod":0}, "methodGuarantee":{"reqLimitGuarantee":0,"timePeriodGuarantee":0}}],"needReadContract":false}], "trafficUser":"partner1_mmitestapp1","submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00", "effectiveTo":"2018-04-24-04:00","status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED", "quota":{"days":1,"limitExceedOK":true,"qtaLimit":10000},"rate":{"reqLimit":10,"timePeriod":1}, "icon":"expressive/app.png"},"status":"UNREAD"},{"id":"b012db05-caac-421f-ad3b-95d5350fc72a", "content":"Partner Create Application Task","date":"01/31/2018","receiver":"PM","sender":"partner1", "senderCompany":"oracle","redirectObject":{"type":"ns4:application", "notificationId":"b012db05-caac-421f-ad3b-95d5350fc72a","applicationID":"60c5e194-ad46-4935-ba78-4777bab65eaf", "applicationName":"mmitestapp1","partnerName":"partner1","partnerCompany":"oracle", "description":"mmi testing application 1","applicationAPIs":[{"apiDisplayName":"3gpp_t8_nidd", "apiName":"3gpp_t8_nidd","accessURL":"http://10.10.10.9:8001/3gpp_t8_nidd/v1\nhttps://10.10.10.9:7002/3gpp_t8_nidd/v1", "apiVersion":"v1","apiDescription":"dsr nidd test api ","needReadContract":false}], "trafficUser":"partner1_mmitestapp1","trafficPassword": "{AES}pqXqICn4W4IJq/u8kitcbn8w82RJKQKZbI2WUaV9KzKOMOcxSUQhU1vd/9hEsZcDBwqjP93HllvhoU41UwOCaw==", "submitDate":"2018-01-31-05:00","effectiveFrom":"2018-01-31-05:00","effectiveTo":"2018-04-24-04:00", "status":"CREATE PENDING APPROVAL","lockStatus":"UNLOCKED","quota":{"days":1,"limitExceedOK":true,"qtaLimit":10000}, "rate":{"reqLimit":10,"timePeriod":1},"icon":"expressive/app.png"},"status":"UNREAD"}]}}
Note the application creation notification ID from the previous step.
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Application.html.
An example of an approval request and response follow:
POST /portal/prm/prm_pm_rest/services/partner_manager/application/PartnerManagerApplication/updateCurrentSlaForApprove HTTP/1.1 Host: 10.75.244.188:9001 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://10.75.244.188:9001/portal/partner-manager/index/main.html Content-Type: application/json AuthorizationX: Basic b3A6e0FFU303cnFtSmc2MGNSMW95S3NvSkZ1V01VOTZ5MlI1cXp6alhCdHNTRkVZTGRvPQ== X-Requested-With: XMLHttpRequest Content-Length: 611 Connection: keep-alive {"updateCurrentSlaForApprove":{"application":{"notificationId":"92b78c6f-2f01-4ed6-8d01-75c43118d53e", "applicationID":"b07e1e8e-0f85-4bdc-9422-1c4b88bbb51b","applicationName":"mmi2","partnerName":"partner1", "partnerCompany":"oracle","description":"mmi 2","trafficUser":"partner1_mmi2", "trafficPassword":"{AES}XE1iY7gDD9sq3o7Ug1WAi+dgAXmnYu7LsYsCUTQYvbQ=","submitDate":"2018-01-31-05:00", "effectiveFrom":"2018-01-31-05:00","effectiveTo":"2018-04-10-04:00","status":"CREATE PENDING APPROVAL", "lockStatus":"UNLOCKED","quota":{"qtaLimit":1000,"limitExceedOK":false,"days":1},"rate":{"reqLimit":10,"timePeriod":1}}}}
HTTP/1.1 200 OK Date: Wed, 31 Jan 2018 05:58:20 GMT Content-Length: 41 Content-Type: application/json X-FRAME-OPTIONS: DENY {"updateCurrentSlaForApproveResponse":{}}
To authorize the request, use the operator username and password in the header of the request.
For more details on the request and response formats, see https://docs.oracle.com/communications/E81149_01/doc.70/e96582/resource_Partner_Manager_Notification.html.
An example of an updated notification status request and response follow:
POST /portal/prm/prm_pm_rest/services/partner_manager/notification/PartnerManagerNotification/updateNotificationStatus HTTP/1.1 Host: 10.178.254.224:9001 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0 Accept: application/json, text/javascript, */*; q=0.01 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/json AuthorizationX: Basic b3JhY2xlb3AxOntBRVN9ZnBTRHBaeWw0dGRqR0lob3c2SzZFOThGT2tKbGxyZXB5Y3RrbUx0MmhPWT0= x-requested-with: XMLHttpRequest Referer: http://10.178.254.224:9001/portal/partner-manager/index/main.html Content-Length: 102 Connection: keep-alive {"updateNotificationStatus":{"notificationId":"b1e706fb-4436-401f-972c-99821f052805","status":"READ"}}
HTTP/1.1 200 OK Date: Thu, 30 Aug 2018 08:42:48 GMT Content-Length: 39 Content-Type: application/json X-Frame-Options: DENY {"updateNotificationStatusResponse":{}}