Related Documentation
- Junos Space
- Get All Auto Submit Policies in Service Now
- Get Information About an Auto Submit Policy
- Modify an Auto Submit Policy
- Assign an Auto Submit Policy to Devices
- Get Devices Associated With an Auto Submit Policy
- Get Events Associated with an Auto Submit Policy
- Change Status of an Auto Submit Policy
- Change the Dampening Status of an Auto Submit Policy
- Delete an Auto Submit Policy
- Auto Submit Policy Management REST API Overview
Create an Auto Submit Policy
Use this API to create an auto submit policy.
URI
https://[host]/api/juniper/servicenow/autosubmit-policy-management/ createAutoSubmitPolicy (HTTP method = POST)
Consumes
- application/vnd.juniper.servicenow.autosubmit-policy-management. createAutoSubmitPolicy+xml;version=1;charset=UTF-8
- application/vnd.juniper.servicenow.autosubmit-policy-management. createAutoSubmitPolicy+json;version=1;charset=UTF-8
Request Elements
Element | Type | Description |
---|---|---|
policyName | String | Name of the auto submit policy |
devices | devices | Collection of devices to which the auto submit policy is applied |
device | device | A device to which the auto submit policy is applied |
uri | String | URI of the device |
href | String | Link to the device |
events | event | Collection of events for which the auto submit policy is applied |
event | event | Event for which the auto submit policy is applied |
allEvents | Boolean | Indicates if all the events should be included in the auto submit policy. Possible values:
|
event | event | Event for which the auto submit policy is applied Note: This element need not be configured If allEvent element is set to true. |
id | Integer | ID of the event |
dampening | String | Dampening status of the event Possible values:
|
filters | filter | Collection of filters that are applied to the auto submit policy |
filter | event | A filter applied to the auto submit policy |
id | Integer | ID of the filter applied to the auto submit policy |
submitCaseOptions | submitCaseOptions | Options to submit an incident for creating a case in Juniper Support System (JSS) |
followUpMethod | String | Method to be used for follow-up of the case Possible values:
|
priority | String | Priority of the submitted incident Possible values—None, Critical, High, Medium, and Low |
associatedCoreFile | Boolean | Flag to indicate if the incident is created because of issues with the core file Possible values:
|
uploadCoreFiles | Boolean | Flag to indicate if the core files should be uploaded to JSS or Service Now Partner
|
synopsisComments | String | Synopsis of the event |
descriptionComments | String | Description of the event |
caseCCList | caseCCList | Collection of e-mail IDs to which the incident should be copied while submitting to JSS |
String | E-mail ID of users to whom incident should be copied while submitting to JSS | |
domainId | Integer | ID of the domain to which the auto submit policy is to be created This is an optional element. If no domain ID is provided, the auto submit policy is created in the Global domain. Note: The create request fails if a user does not have access to the Global domain and if no domain ID is provided with the create request. |
Produces
- application/vnd.juniper.servicenow.autosubmit-policy-management. servicenowmsg+xml;version=1
- application/vnd.juniper.servicenow.autosubmit-policy-management. servicenowmsg+json;version=1
Response Elements
Element | Type | Description |
---|---|---|
msg | String | Status message of the create auto submit policy job |
Sample Input
Sample XML Input
<autoSubmitPolicy> <policyName>Test_Pla</policyName> <devices> <device uri="/api/juniper/servicenow/device-management/devices/590809" href="/api/juniper/servicenow/device-management/devices/590809" /> </devices> <events> <allEvents>true</allEvents> </events> <filters> <filter> <id>841243</id> </filter> </filters> <submitCaseOptions> <followUpMethod>EMAIL_FULL_TEXT</followUpMethod> <priority>Low</priority> <associatedCoreFile>true</associatedCoreFile> <uploadCoreFiles>false</uploadCoreFiles> <synopsisComments>synComm</synopsisComments> <descriptionComments>descComm</descriptionComments> <caseCCList> <email>user@example.com</email> </caseCCList> </submitCaseOptions> </autoSubmitPolicy>
Sample JSON Input
{ "autoSubmitPolicy": { "policyName": "Test91", "devices": { "device": { "@uri": "/api/juniper/servicenow/device-management/devices/34672", "@href": "/api/juniper/servicenow/device-management/devices/34672" } }, "events": { "event": { "allEvents": "true", "dampening": "NONE" } "filters": { "filter": { "id": "841243", } }, "submitCaseOptions": { "followUpMethod": "EMAIL_FULL_TEXT", "priority": "Low", "associatedCoreFile": "true", "uploadCoreFiles": "false", "synopsisComments": "synComm", "descriptionComments": "descComm", "caseCCList": { "email": "user@example.com" } } } }
Sample Output
Sample XML Output
<servicenowmsg> <msg> Auto submit policy created successfully </msg> </servicenowmsg>
Sample JSON Output
{ "servicenowmsg": { "msg": "Auto submit policy created successfully " } }
Related Documentation
- Junos Space
- Get All Auto Submit Policies in Service Now
- Get Information About an Auto Submit Policy
- Modify an Auto Submit Policy
- Assign an Auto Submit Policy to Devices
- Get Devices Associated With an Auto Submit Policy
- Get Events Associated with an Auto Submit Policy
- Change Status of an Auto Submit Policy
- Change the Dampening Status of an Auto Submit Policy
- Delete an Auto Submit Policy
- Auto Submit Policy Management REST API Overview