{ "id":"/axapi/v3/snmp-server/host", "type":"object", "node-type":"intermediate", "title":"host", "operation-not-allowed": ["PUT", "POST", "DELETE"], "partition-visibility":"shared", "description":"Specify hosts to receive SNMP traps", "properties":{ "ipv4-host-list":{ "type":"array", "minItems":1, "items":{ "type":"ipv4-host" }, "uniqueItems":true, "$ref":"/axapi/v3/snmp-server/host/ipv4-host/{ipv4-addr}+{version}", "array":[ { "properties":{ "ipv4-addr":{ "type":"string", "format":"ipv4-address", "partition-visibility":"shared", "description":"IPV4 address of SNMP trap host", "optional":false }, "version":{ "type":"string", "format":"enum", "default":"v2c", "partition-visibility":"shared", "description":"'v1': Use SNMPv1; 'v2c': Use SNMPv2c; 'v3': User SNMPv3; ", "enum":[ "v1", "v2c", "v3" ], "optional":false }, "user":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv3 user to send traps (User Name)", "optional":true }, "v1-v2c-comm":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv1/v2c community string", "optional":true }, "udp-port":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "default":162, "partition-visibility":"shared", "description":"The trap host's UDP port number(default: 162)", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } }, "required":[ "ipv4-addr", "version" ] } ] }, "ipv6-host-list":{ "type":"array", "minItems":1, "items":{ "type":"ipv6-host" }, "uniqueItems":true, "$ref":"/axapi/v3/snmp-server/host/ipv6-host/{ipv6-addr}+{version}", "array":[ { "properties":{ "ipv6-addr":{ "type":"string", "format":"ipv6-address", "partition-visibility":"shared", "description":"IPV6 address of SNMP trap host", "optional":false }, "version":{ "type":"string", "format":"enum", "default":"v2c", "partition-visibility":"shared", "description":"'v1': Use SNMPv1; 'v2c': Use SNMPv2c; 'v3': User SNMPv3; ", "enum":[ "v1", "v2c", "v3" ], "optional":false }, "user":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv3 user to send traps (User Name)", "optional":true }, "v1-v2c-comm":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv1/v2c community string", "optional":true }, "udp-port":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "default":162, "partition-visibility":"shared", "description":"The trap host's UDP port number(default: 162)", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } }, "required":[ "ipv6-addr", "version" ] } ] }, "host-name-list":{ "type":"array", "minItems":1, "items":{ "type":"host-name" }, "uniqueItems":true, "$ref":"/axapi/v3/snmp-server/host/host-name/{hostname}+{version}", "array":[ { "properties":{ "hostname":{ "type":"string", "format":"string", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"Hostname of SNMP trap host", "optional":false }, "version":{ "type":"string", "format":"enum", "default":"v2c", "partition-visibility":"shared", "description":"'v1': Use SNMPv1; 'v2c': Use SNMPv2c; 'v3': User SNMPv3; ", "enum":[ "v1", "v2c", "v3" ], "optional":false }, "user":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv3 user to send traps (User Name)", "optional":true }, "v1-v2c-comm":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":31, "partition-visibility":"shared", "description":"SNMPv1/v2c community string", "optional":true }, "udp-port":{ "type":"number", "format":"number", "minimum":1, "maximum":65535, "default":162, "partition-visibility":"shared", "description":"The trap host's UDP port number(default: 162)", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true } }, "required":[ "hostname", "version" ] } ] } } }