Difference between revisions of "NXSL:NetObj"

From NetXMS Wiki
Jump to navigation Jump to search
(Updated attributes and methods of NetObj class)
Line 12: Line 12:
|-
|-
! Name !! Type !! Description
! Name !! Type !! Description
|-
| city|| string || Object location city string
|-
|-
| comments || string || Object's comments
| comments || string || Object's comments
|-
| country|| string || Object location country string
|-
| customAttributes|| HashMap || HashMap of object's custom attributes
|-
|-
| geolocation || object ([[NXSL:GeoLocation|GeoLocation]]) || Object's location
| geolocation || object ([[NXSL:GeoLocation|GeoLocation]]) || Object's location
Line 24: Line 30:
|-
|-
| name || string || Object name
| name || string || Object name
|-
| postcode|| string || Object location postcode string
|-
|-
| status || int32 || Object status (see possible values in table below)
| status || int32 || Object status (see possible values in table below)
|-
| streetAddress|| string || Object location street address string
|-
|-
| type || int32 || Object type (class)
| type || int32 || Object type (class)
|-
| [any other string] || string || Returns object's custom attribute with the name of the given string
|}
'''Methods'''
{| class="wikitable"
|-
! Name !! Parameters !! Return value
|-
| [[NXSL:NetObj:clearGeoLocation|clearGeoLocation]] || none || none
|-
| [[NXSL:NetObj:setGeoLocation|setGeoLocation]] || Object of [[NXSL:GeoLocation|GeoLocation]] class || none
|}
|}


Line 91: Line 113:
| 14 || Cluster
| 14 || Cluster
|}
|}
'''Methods'''
[[NXSL:NetObj:clearGeoLocation|clearGeoLocation]]
[[NXSL:NetObj:setGeoLocation|setGeoLocation]]


[[Category:NXSL Class Reference]]
[[Category:NXSL Class Reference]]

Revision as of 14:34, 25 January 2016

Represents NetXMS object (subnet, container, etc.)


Class Name

NetObj


Attributes

Name Type Description
city string Object location city string
comments string Object's comments
country string Object location country string
customAttributes HashMap HashMap of object's custom attributes
geolocation object (GeoLocation) Object's location
guid string Object's GUID
id uint32 Object identifier
ipAddr string Primary IP address
name string Object name
postcode string Object location postcode string
status int32 Object status (see possible values in table below)
streetAddress string Object location street address string
type int32 Object type (class)
[any other string] string Returns object's custom attribute with the name of the given string

Methods

Name Parameters Return value
clearGeoLocation none none
setGeoLocation Object of GeoLocation class none

Possible values for "status" attribute

Status ID Desc
0 Normal
1 Warning
2 Minor
3 Major
4 Critical
5 Unknown
6 Unmanaged
7 Disabled
8 Testing

Object types

Object type Desc
0 Generic
1 Subnet
2 Node
3 Interface
4 Network
5 Container
6 Zone
7 Serviceroot
8 Template
9 Templategroup
10 Templateroot
11 Networkservice
12 Vpnconnector
13 Condition
14 Cluster