I have a set of users that I want to subscribe to the same notifications available via the Portal. However, as I'm automating the creation/management of these users, I also want to automate the subscription to these notifications.
I've reviewed the API documentation, searched for any examples/tutorials, and I'm still not having any luck figuring out how to accomplish this.
Any clues, or examples would be awesome.
To add the permission, execute the following request:
Method: POST
Json (payload):
To get the user permissions, execute:
References: http://sldn.softlayer.com/reference/services/SoftLayer_User_Customer
EDIT:
Follow these steps to subscribe notifications to a customer user:
Example: Add “PLANNED_MAINTENANCE” notification subscription.
1. Create a notification subscription record for the user using: SoftLayer_User_Customer::addNotificationSubscriber
URL:
Method: POST
Json (payload):
Reference:
2. Create delivery methods for a notification that the user is subscribed to (SoftLayer_User_Customer::createSubscriberDeliveryMethods).
URL:
Method: POST
Json (payload):
To get information about “notificationKeyName” and “deliveryMethodKeyNames”, execute:
Reference: