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/dns_lookups

date_range 24-May-22

SUMMARY Creates a new DNS lookup. Lookup completes in the background.

Creates a new DNS lookup.

Table 1: POST /services/dns_lookups resource details:

POST /services/dns_lookups resource details

MIME Type

application/json

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

POST /services/dns_lookups request parameter details

Parameter Type Optionality Data Type MIME Type Description

IP

query

Required

String

text/plain

Used to retrieve the DNS 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/dns_lookups response codes:

POST /services/dns_lookups response codes

HTTP Response Code Unique Code Description

201

The DNS lookup was successfully created.

500

1020

An internal server error occurred during the creation of the DNS lookup.

Response Description

A DNS Lookup object and the location header set to the task status url "/services/dns_lookups/{dns_lookup_id}". A DNS status object contains the following fields:
  • id - Long - The ID of the DNS lookup.
  • ip - String - The IP to investigate.
  • message - String - The result of the DNS lookup 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