Config - NetFlow Sources

Object type: netflow_source

Request URL: /rest/config/netflow_source

Example GET Copied

    {
       "list" : [
          {
             "active" : "0",
             "collector_id" : "1",
             "host_id" : "7",
             "id" : "1",
             "port" : "5454",
             "ref" : "/rest/config/netflowsource/1",
             "uncommitted" : "0"
          },
          {
             "active" : "1",
             "collector_id" : "1",
             "host_id" : "9",
             "id" : "3",
             "port" : "5455",
             "ref" : "/rest/config/netflowsource/3",
             "uncommitted" : "0"
          },
          {
             "active" : "1",
             "collector_id" : "2",
             "host_id" : "11",
             "id" : "5",
             "port" : "5454",
             "ref" : "/rest/config/netflowsource/5",
             "uncommitted" : "0"
          },
          {
             "active" : "1",
             "collector_id" : "1",
             "host_id" : "13",
             "id" : "9",
             "port" : "123",
             "ref" : "/rest/config/netflowsource/9",
             "uncommitted" : "0"
          }
       ],
       "summary" : {
          "allrows" : "4",
          "page" : "1",
          "rows" : "4",
          "totalpages" : "1",
          "totalrows" : "4"
       }
    }

Example GET single node Copied

Request URL: /rest/config/netflow_source/5

    {
       "object" : {
          "active" : "1",
          "collector_id" : "2",
          "host_id" : "11",
          "id" : "5",
          "port" : "5454",
          "uncommitted" : "0"
       }
    }

Example PUT Copied

Note

Only the active state (boolean) can be changed for an existing source.

Request URL: /rest/config/netflow_source/1

Request data:

    {
       "object" : {
          "active" : "1",
          "collector_id" : "1",
          "host_id" : "7",
          "port" : "5454",
       }
    }

Response:

    {
       "object" : {
          "active" : "1",
          "collector_id" : "1",
          "host_id" : "7",
          "id" : "1",
          "port" : "5454",
          "uncommitted" : "1"
       }
    }

Example POST Copied

Request URL: /rest/config/netflow_source

Request data:

    {
       "object" : {
          "active" : "1",
          "collector_id" : "2",
          "host_id" : "12",
          "port" : "1234",
       }
    }

Response:

    {
       "object" : {
          "active" : "1",
          "collector_id" : "2",
          "host_id" : "12",
          "id" : "10",
          "port" : "1234",
          "uncommitted" : "1"
       }
    }

Example DELETE Copied

Request URL: /rest/config/netflow_source/5

Response:

    {
       "success" : "1"
    }
["Opsview"] ["API", "Technical Reference"]

Was this topic helpful?