Update Polling Group

Update Polling Group

API to update a single polling group

Request
URI
PUT
https://{api_host}/tcsa/api/v1/snmp/pollingGroups
COPY
Query Parameters
string
snmpIntegration
Optional

The name of the current snmp integration


Request Body

The polling group object to be updated.

PollingGroupRequest of type(s) application/json
Required

Show optional properties

{
    "pollingMaskNames": [
        "GENERIC-SYSUPTIME",
        "GENERIC-INTERFACES"
    ],
    "pollingPeriod": 300,
    "assignedTo": "collector-a",
    "name": "GEN-VEIVN9SWIB-300-check",
    "snmpAgentNames": [
        "10.106.232.11:161"
    ],
    "tableDiscoveryTime": "00:00:00"
}
{
    "name": "polling-group",
    "pollingPeriod": 300,
    "tableDiscoveryTime": "00:00:00",
    "groupName": "group",
    "uniformTimestamps": false,
    "startAtDefinedPeriod": false,
    "startTimeOffset": 0,
    "pollingMaskNames": [
        "CISCO-MEMORY-OLD",
        "GENERIC-INTERFACES"
    ],
    "snmpAgentNames": [
        "string"
    ],
    "enabled": false,
    "assignedTo": "collector-a"
}
string
name
Required

he polling group's name. As stated before, this name must be unique as it is an identifier. The value of this attribute is used to set the pollgrp property of the raw values resulting from this polling group.

integer
pollingPeriod
Required
Constraints: default: 300

The polling group's polling period, specified in seconds. This value indicates the time interval between each polling.

string
tableDiscoveryTime
Required
Constraints: default: 00:00:00

This is the time at which, every day, the metric properties will be refreshed (as well as any reference table resident in the collector) and sent to the backend.Refreshing the raw value's properties may be slightly more demanding on the database side of the backend, therefore, it is recommended to set this value at some off-hour time.Please note that this value is formatted in 24h time, 00:00:00 being midnight, 08:00:00 being 8:00AM, 20:00:00 being 8:00PM and so on.

string
groupName
Optional
Constraints: default: group

This is a notion specific to the backend. This is an optional parameter that will be taken from the collector if not filled here. Note: If the groupName is explicitly provided empty or null, polling will not take place. So if groupName is not being explicitly set to any value, ommit it from the request object.

boolean
uniformTimestamps
Optional

When set to true, the polling will start at the next "round" period (0:04, 0:08... if polling period is set to 4 minutes) and all timestamps for the generated raw values will be the rounded to the polling cycle start time (0:04, 0:08...).

boolean
startAtDefinedPeriod
Optional

When set to true, the polling will start at the next "round" period (0:04, 0:08... if polling period is set to 4 minutes). Raw value timestamps will be accurate.

integer
startTimeOffset
Optional
Constraints: default: 0

This defines a waiting period before the polling group starts collecting data. The polling load may be spread through time by assigning different values to polling groups.

array of string
pollingMaskNames
Required

This is the list of masks that will be used for this polling group. These masks contain both single OIDs and columns of tables.At least one mask must be provided for the polling group to be valid.

array of string
snmpAgentNames
Required

This is the list of IDs of the SNMP agents on which the polling will be done. Note: This is a list of the snpAgent ids and not their names. The ID is a combination of 4 attributes "ipAddress" , "port", "v3ContextName" and "v3ContextEnginedId"

boolean
enabled
Optional
Constraints: default: true

When set to false, then this polling group will be ignored, and no polling will occur for it.

string
assignedTo
Required

The name of the collector this polling group is assigned to. Only one collector can be assigned.

Authentication
This operation uses the following authentication methods.
Responses
200

OK Returned updated polling group configuration

Returns PollingGroupResponse of type(s) application/json
{
    "oneOrNone": true,
    "name": "GEN-VEIVN9SWIB-300-check-twice",
    "pollingPeriod": 300,
    "tableDiscoveryTime": "00:00:00",
    "groupName": "group",
    "uniformTimestamps": false,
    "startAtDefinedPeriod": false,
    "startTimeOffset": 0,
    "pollingMaskNames": [
        "GENERIC-SYSUPTIME",
        "GENERIC-INTERFACES"
    ],
    "snmpAgentIps": [],
    "snmpAgentNames": [
        "10.106.232.11:161"
    ],
    "snmpAgentsIPGroupNames": [],
    "snmpAgentsExplicitGroupNames": [],
    "enabled": true,
    "pollingGroups": null,
    "snmpAgents": null,
    "assignedTo": "collector-a"
}
string
name
Required

he polling group's name. As stated before, this name must be unique as it is an identifier. The value of this attribute is used to set the pollgrp property of the raw values resulting from this polling group.

integer
pollingPeriod
Required
Constraints: default: 300

The polling group's polling period, specified in seconds. This value indicates the time interval between each polling.

string
tableDiscoveryTime
Required
Constraints: default: 00:00:00

This is the time at which, every day, the metric properties will be refreshed (as well as any reference table resident in the collector) and sent to the backend.Refreshing the raw value's properties may be slightly more demanding on the database side of the backend, therefore, it is recommended to set this value at some off-hour time.Please note that this value is formatted in 24h time, 00:00:00 being midnight, 08:00:00 being 8:00AM, 20:00:00 being 8:00PM and so on.

string
groupName
Optional
Constraints: default: group

This is a notion specific to the backend. This is an optional parameter that will be taken from the collector if not filled here.

boolean
uniformTimestamps
Optional

When set to true, the polling will start at the next "round" period (0:04, 0:08... if polling period is set to 4 minutes) and all timestamps for the generated raw values will be the rounded to the polling cycle start time (0:04, 0:08...).

boolean
startAtDefinedPeriod
Optional

When set to true, the polling will start at the next "round" period (0:04, 0:08... if polling period is set to 4 minutes). Raw value timestamps will be accurate.

integer
startTimeOffset
Optional
Constraints: default: 0

This defines a waiting period before the polling group starts collecting data. The polling load may be spread through time by assigning different values to polling groups.

array of string
pollingMaskNames
Required

This is the list of masks that will be used for this polling group. These masks contain both single OIDs and columns of tables.At least one mask must be provided for the polling group to be valid.

array of string
snmpAgentIps
Optional

This is the list of IPs of the SNMP agents on which the polling will be done. This attribute is not to be sent in the request, it will be populated in the backend given the list of agent ids in the attribute "snmpAgentNames"

array of string
snmpAgentNames
Required

This is the list of IDs of the SNMP agents on which the polling will be done. Note: This is a list of the snpAgent ids and not their names. The ID is a combination of 4 attributes "ipAddress" , "port", "v3ContextName" and "v3ContextEnginedId"

array of object
snmpAgentsIPGroupNames
Optional

This is the list of groups which contain agents selected by their IP matching a pattern. This is always null in the response

array of object
snmpAgentsExplicitGroupNames
Optional

This is the list of agents groups, created by explicitly specifying the agents, on which the polling will be done. This is always null in the response

boolean
enabled
Optional
Constraints: default: true

When set to false, then this polling group will be ignored, and no polling will occur for it.

object
pollingGroups
Optional

Polling groups within a polling group. This always null in the response

object
snmpAgents
Optional

A list of all snmpAgent objects. This is always null in the response.

string
assignedTo
Required

The name of the collector this polling group is assigned to. Only one collector can be assigned.


400

BAD REQUEST Error in request sent

Returns SnmpError of type(s) application/json
"SnmpError Object"
string
code
Optional

This code refers to the internal error codes used in the code base.

string
reason
Optional

This specifies the reason for failure.

string
status
Optional

This specifies the HTTP status code error


404

NOT FOUND Requested object not found

Returns SnmpError of type(s) application/json
"SnmpError Object"
string
code
Optional

This code refers to the internal error codes used in the code base.

string
reason
Optional

This specifies the reason for failure.

string
status
Optional

This specifies the HTTP status code error


500

INTERNAL SERVER ERROR Error on the server

Returns SnmpError of type(s) application/json
"SnmpError Object"
string
code
Optional

This code refers to the internal error codes used in the code base.

string
reason
Optional

This specifies the reason for failure.

string
status
Optional

This specifies the HTTP status code error


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string","pollingPeriod:"integer","tableDiscoveryTime:"string","pollingMaskNames":["string"],"snmpAgentNames":["string"],"assignedTo:"string"}' https://{api_host}/tcsa/api/v1/snmp/pollingGroups