SNMP Settings   /rest/apv/admintools/snmp/SNMPGeneral

Simple Network Management Protocol (SNMP) is a widely used network monitoring and control protocol. The network structure is consisted of Network Management Station (NMS), SNMP agent and MIB. The NMS uses the SNMP protocol to manage and monitor the devices in the network. When receiving SNMP requests from the NMS, the SNMP agent performs query or modify operation and return the operation results to the NMS. Each SNMP agent has a MIB file, which is a set of objects that can be managed by the NMS. The system currently supports the SNMP GET requests, but not SNMP SET requests. In addition, the system supports SNMP trap.

  • Relational-instance Queries:
  • GET
    /rest/apv/admintools/snmp/SNMPGeneral/v3_user
    Query the SNMP v3 User info of the corresponding SNMP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "SNMPGeneral": {
            "instance_id":<instance_id>,
            "v3_user":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/admintools/snmp/SNMPGeneral/v3_user
    Create a SNMP v3 User for corresponding SNMP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    username string
    level enum Available values:
    • authNopriv (authNopriv) - Communication requires authentication, but not privacy.
    • authPriv (authPriv) - Communication requires authentication and privacy.
    auth_password string
    priv_password string Sets the private password used for authorization.
    Response format
            {
                "SNMPV3User": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/admintools/snmp/SNMPGeneral/v3_user/<snmpv3user_id>
    Delete a specific SNMP v3 User of corresponding snmpgeneral
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples
  • GET
    /rest/apv/admintools/snmp/SNMPGeneral/permit_ip
    Query the Permit IP info of the corresponding SNMP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "SNMPGeneral": {
            "instance_id":<instance_id>,
            "permit_ip":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/admintools/snmp/SNMPGeneral/permit_ip
    Create a Permit IP for corresponding SNMP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ipaddr
    netmask_prefixlen string
    Response format
            {
                "PermitIP": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/admintools/snmp/SNMPGeneral/permit_ip/<permitip_id>
    Delete a specific Permit IP of corresponding snmpgeneral
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples