NSX-T Data Center REST API

Snmpv2cTarget (type)

{
  "additionalProperties": false,
  "description": "This object contains SNMP v2c target/receiver where SNMP traps/notifications will be sent.",
  "id": "Snmpv2cTarget",
  "module_id": "CentralConfig",
  "properties": {
    "community_name": {
      "description": "Unique non-sensitive community name to identify community.",
      "maxLength": 64,
      "minLength": 1,
      "required": true,
      "title": "Community name",
      "type": "string"
    },
    "community_string": {
      "description": "Community string (shared secret). This field is required when adding a community target. When updating a community target, do not include this field in the request. If this field is present in an update request, it will be considered as a new value for community string.",
      "maxLength": 64,
      "minLength": 1,
      "required": false,
      "sensitive": true,
      "title": "Community string",
      "type": "secure_string"
    },
    "port": {
      "default": 162,
      "description": "SNMP v2c target server's port number.",
      "maximum": 65535,
      "minimum": 1,
      "required": false,
      "title": "SNMP v2c target server port",
      "type": "integer"
    },
    "server": {
      "$ref": "HostnameOrIPAddress",
      "description": "SNMP v2c target server's IP or FQDN.",
      "required": true,
      "title": "SNMP v2c target server"
    }
  },
  "title": "SNMP v2c target",
  "type": "object"
}