Asset

Returns the service running a port and protocol on the asset.

get/api/3/assets/{id}/services/{protocol}/{port}

Request

Path parameters

idinteger required

The identifier of the asset.

Example:282
portinteger required

The port of the service.

protocol'ip' | 'icmp' | 'igmp' | 'ggp' | 'tcp' | 'pup' | 'udp' | 'idp' | 'esp' | 'nd' | 'raw' required

The protocol of the service.

Query parameters

nicstring

The network interface card (NIC) of the service.

Response

OK

familystring

The family of the service.

namestring

The name of the service.

nicstring

The network interface card (NIC) of the service.

portinteger required

The port of the service.

productstring

The product running the service.

protocol'ip' | 'icmp' | 'igmp' | 'ggp' | 'tcp' | 'pup' | 'udp' | 'idp' | 'esp' | 'nd' | 'raw' required

The protocol of the service.

vendorstring

The vendor of the service.

versionstring

The version of the service.

Example response

{
  "configurations": [
    {
      "name": "<name>",
      "value": "<value>"
    }
  ],
  "databases": [
    {
      "description": "Microsoft SQL Server",
      "id": 13,
      "name": "MSSQL"
    }
  ],
  "links": [
    {
      "href": "https://hostname:3780/api/3/...",
      "rel": "self"
    }
  ],
  "name": "CIFS Name Service",
  "nic": "eth0",
  "port": 139,
  "product": "Samba",
  "protocol": "tcp",
  "userGroups": [
    {
      "id": 972,
      "name": "Administrators"
    }
  ],
  "users": [
    {
      "fullName": "Smith, John",
      "id": 8952,
      "name": "john_smith"
    }
  ],
  "version": "3.5.11",
  "webApplications": [
    {
      "id": 30712,
      "pages": [
        {
          "linkType": "html-ref",
          "path": "/docs/config/index.html",
          "response": 200
        }
      ],
      "root": "/",
      "virtualHost": "102.89.22.253"
    }
  ]
}

Changes

    • info

      added the new optional query request parameter nic

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status

    • info

      added the media type application/json;charset=UTF-8 for the response with the status