Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Export All or Selected Auto Submit Filters

    Use this API to export all or selected auto submit filters configured in Junos Space Service Now to an XML file.

    URI

    https://[host]/api/juniper/servicenow/autosubmit-filter-management /autosubmitFilters/export (HTTP method = POST)

    URI Parameters

    None

    Consumes

    • application/vnd.juniper.servicenow.autosubmit-filter-management.filters +xml;version=1;charset=UTF-8
    • application/vnd.juniper.servicenow.autosubmit-filter-management.filters +json;version=1;charset=UTF-8

    Request Elements

    Element

    Type

    Description

    applyAllFilters

    String

    Indicates if all incident filters configured in Service Now should be disabled

    Possible values:

    • true—All incident filters are disabled
    • false—Indicated incident filters are disabled

      When the value is set to false for this element, ID of the auto submit filters that you want to disable should be provided in the request.

    id

    Integer

    ID of the filter to be exported

    Produces

    application/octet-stream

    Sample Input

    Sample XML Input

    <filters>
    <applyAllFilters>false</applyAllFilters>
    <filter>
    <id>5963776</id>
    </filter>
    <filter>
    <id>6258696</id>
    </filter>
    </filters>
    

    Sample JSON Input

      {
      	"filters": {
      		"filter": [{
      				"id": "5963776"
      			},
      			{
      				"id": "6258696"
      			}
      		]
      	}
      }

    Sample Output

    An XML file containing the information about all the auto submit filters configured in Service Now.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Filters>
        <snVersion>12.2.888888</snVersion>
        <Filter>
            <FilterData>
                <caseIDToBeAssociated>testcaseid_1</caseIDToBeAssociated>
                <created>1493699398183</created>
                <createdBy>super</createdBy>
                <domainId>2</domainId>
                <filterAction>2</filterAction>
                <filterName>AutoSubmitFilter_1</filterName>
                <filterSubAction>4</filterSubAction>
                <filterType>1</filterType>
                <lastUpdated>1494322661923</lastUpdated>
                <priority>1</priority>
                <status>1</status>
            </FilterData>
            <FilterAttributes>
                <FilterAttribute>
                    <domainId>1</domainId>
                    <filterAttributeCondition>includes</filterAttributeCondition>
                    <filterAttributeName>Device Name</filterAttributeName>
                    <filterAttributeValue>fuga</filterAttributeValue>
                    <filterCondition>1</filterCondition>
                    <filterId>5963776</filterId>
                    <priority>0</priority>
                </FilterAttribute>
            </FilterAttributes>
            <FilterFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        </Filter>
        <Filter>
            <FilterData>
                <created>1493885580129</created>
                <createdBy>super</createdBy>
                <domainId>2</domainId>
                <filterAction>2</filterAction>
                <filterName>AutoSubmitFilter_2</filterName>
                <filterSubAction>4</filterSubAction>
                <filterType>1</filterType>
                <lastUpdated>1493885580129</lastUpdated>
                <priority>2</priority>
                <status>1</status>
            </FilterData>
            <FilterAttributes>
                <FilterAttribute>
                    <domainId>2</domainId>
                    <filterAttributeCondition>includes</filterAttributeCondition>
                    <filterAttributeName>Device Name</filterAttributeName>
                    <filterAttributeValue>fuga</filterAttributeValue>
                    <filterCondition>1</filterCondition>
                    <filterId>6258696</filterId>
                    <priority>0</priority>
                </FilterAttribute>
            </FilterAttributes>
            <FilterFile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
        </Filter>
    </Filters>
    

    Modified: 2017-07-18