Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
REST API Version 17.0 References
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

POST /services/port_scans

date_range 24-May-22

SUMMARY Creates a new PortScans lookup. Port scan completes in the background.

Creates a new port scan lookup Not Available on SAAS systems, will return a 404 error.

Table 1: POST /services/port_scans resource details:

POST /services/port_scans resource details

MIME Type

application/json

Table 2: POST /services/port_scans request parameter details:

POST /services/port_scans request parameter details

Parameter Type Optionality Data Type MIME Type Description

IP

query

Required

String

text/plain

Used to retrieve the port scan lookup.

fields

query

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: POST /services/port_scans response codes:

POST /services/port_scans response codes

HTTP Response Code Unique Code Description

201

he PortScans lookup was created successfully.

500

1020

An internal server error occurred during the creation of the port scan lookup.

Response Description

A port scan object and the location header set to the task status url "/services/port_scans/{port_scan_id}". A port scan status object contains the following fields:
  • id - Long - The ID of the port scan.
  • ip - String - The IP to investigate.
  • message - String - The result of the port scan when complete.
  • status - String - The current state of the task.

Response Sample

content_copy zoom_out_map
{
    "id": 42,
    "ip": "String",
    "message": "String",
    "status": "String <one of: CANCELLED, CANCELING, CANCEL_REQUESTED, COMPLETED, CONFLICT, EXCEPTION, INITIALIZING, INTERRUPTED, PAUSED, PROCESSING, QUEUED, RESUMING>"
}
footer-navigation