如何将用户添加到evault存储的订阅列表中

时间:2016-06-06 09:01:50

标签: api ibm-cloud-infrastructure

我应该使用什么API来订阅Evault存储使用情况通知?

1 个答案:

答案 0 :(得分:0)

请尝试以下休息请求:

https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Notification_User_Subscriber/createObject

Method: post

{  
   "parameters":[  
      {  
         "active":1,
         "notificationId":3,
         "userRecordId":498265,
         "preferences":[  
            {  
               "notificationPreferenceId":2,
               "value":"70"
            },
            {  
               "notificationPreferenceId":3,
               "value":"1"
            }
         ],
         "resourceRecord":{  
            "resourceTableId":4862895
         }
      }
   ]
}

用您自己的信息替换:$ user,$ apiKey。 另外,替换这些值: 498265 使用用户的标识符 带有evault标识符的 4862895

<强>参考文献: