Clone an Event Profile
Use this API to clone an event profile.
URI
https://[host]/api/juniper/servicenow/event-profile-management/eventprofiles/{id} /cloneEventProfile (HTTP method = POST)
URI Parameters
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | Yes | ID of the event profile to be cloned |
Consumes
- application/vnd.juniper.servicenow.event-profile-management.cloneEventProfile +xml;version=1
- application/vnd.juniper.servicenow.event-profile-management.cloneEventProfile +json;version=1
Request Elements
Element | Type | Description |
---|---|---|
profileName | String | Name of the event profile |
description | String | Description of the event profile |
scriptBundle | scriptBundle | Script bundle using which the event profile was created |
href | String | URI of the script bundle |
uri | String | Link to the Script bundle |
events | event | Collection of events in the event profile |
event | event | An event in the event profile |
id | Integer | ID of an event in the event profile |
priority | String | Priority of the event Possible values:
|
Produces
- application/vnd.juniper.servicenow.event-profile-management.servicenowmsg +xml;version=1
- application/vnd.juniper.servicenow.event-profile-management.servicenowmsg +json;version=1
Response Elements
Element | Type | Description |
---|---|---|
msg | String | Status message of the clone event profile job |
Sample Input
Sample XML Input
<cloneEventProfile> <profileName>clone_Base_Profile_4_1R2_4</profileName> <description>testing</description> <scriptBundle href="/api/juniper/servicenow/scriptbundle-management/scriptbundles/33216" uri="/api/juniper/servicenow/scriptbundle-management/scriptbundles/33216" /> <events> <event> <id>32888</id> <priority>Critical</priority> </event> </events> </cloneEventProfile>
Sample JSON Input
{ "cloneEventProfile": { "profileName": "clone_Base_Profile_4_1R2_4", "description": "testing", "scriptBundle": { "@href": "/api/juniper/servicenow/scriptbundle-management/scriptbundles/33216", "@uri": "/api/juniper/servicenow/scriptbundle-management/scriptbundles/33216" }, "events": { "event": { "id": "32888", "priority": "Critical" } } } }
Sample Output
Sample XML Output
<servicenowmsg> <msg>Profile created Successfully with name: clone_Base_Profile_4_1R2_4 id: 33242</msg> </servicenowmsg>
Sampl JSON Output
{ "servicenowmsg": { "msg": "Profile created Successfully with name: clone_Base_Profile_4_1R2_4 id: 33242" } }