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

    Get All SNMP Configuration

    Use this API to retrieve all SNMP configurations present in Junos Space Service Now.

    URI

    https://[host]/ api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpConfiguration (HTTP method = GET)

    Consumes

    None

    Produces

    • application/vnd.juniper.servicenow.global-setting-management.snmp-configuration -management.snmpConfigurations+xml;version=1
    • application/vnd.juniper.servicenow.global-setting-management.snmp-configuration -management.snmpConfigurations+json;version=1

    Response Elements

    Element

    Type

    Description

    uri

    String

    URI of the SNMP configuration collection

    size

    Integer

    Number of records in the SNMP configuration collection

    snmpConfiguration

    snmpConfiguration

    An SNMP configuration

    href

    String

    Link to the SNMP configuration

    key

    Integer

    ID of the SNMP configuration

    configurationName

    String

    Name of the SNMP configuration

    server

    String

    IP address in the IPv4 or IPv6 format or hostname of the SNMP server

    udpPort

    Integer

    Port for SNMP communication

    communityString

    String

    SNMP community string

    protocolVersion

    String

    Version of SNMP protocol used

    Possible values—v1, v2c

    Sample Output

    Sample XML Output

    <snmpConfigurations uri="/api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpConfiguration" size="1">
    <snmpConfiguration href= "/api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpConfiguration/98304" uri="/api/juniper/servicenow/global-setting-management/snmp-configuration-management /snmpConfiguration/98304" key="98304">
    <configurationName>testEdit</configurationName>
    <server>test</server>
    <udpPort>161</udpPort>
    <communityString>testingRestF</communityString>
    <protocolVersion>v1</protocolVersion>
    </snmpConfiguration>
    </snmpConfigurations>
    
    

    Sample JSON Output

    {
      "snmpConfigurations": {
        "@uri": "/api/juniper/servicenow/global-setting-management/snmp-configuration -management /snmpConfiguration",
        "@size": "1",
        "snmpConfiguration": {
          "@href": "/api/juniper/servicenow/global-setting-management/snmp-configuration -management /snmpConfiguration/98304",
          "@uri": "/api/juniper/servicenow/global-setting-management/snmp-configuration -management /snmpConfiguration/98304",
          "@key": "98304",
          "configurationName": "testEdit",
          "server": "test",
          "udpPort": "161",
          "communityString": "testingRestF",
          "protocolVersion": "v1"
        }
      }
    }
    

    Modified: 2016-08-11