Get DNS Override Details

[GET] /qps/rest/3.0/get/was/dnsoverride/<id>

View details for an DNS override which is in the user’s scope. See “Search DNS overrides” to find a record ID to use as input.

Permissions required - User must have WAS module enabled. User account must have these permissions: Access Permission “API Access”. The Output includes DNS overrides in the user's scope.

Input ParametersInput Parameters

The element “id” (integer) is required, where “id” identifies an option profile.

Click here for available operators

Sample - Get details of an option profile (GET)Sample - Get details of an option profile (GET)

Let us fetch details of DNS override. Ensure that you do not add any data or filter in the request.

API request

curl -u "USERNAME:PASSWORD" " -X GET -H "Content-type: text/xml"
"<qualys_base_url>/qps/rest/3.0/get/was/dnsoverride/57020"      
    

XML response

<?xml version="1.0" encoding="UTF-8"?>
<ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<qualys_base_url>/qps/xsd/3.0/was/dnsoverride.xsd">
    <responseCode>SUCCESS</responseCode>
    <count>1</count>
    <data>
    <DnsOverride>
        <id>57020</id>
        <name>
        <![CDATA[Test API DNS Record4]]>
        </name>
            ...
            
        <mappings>
        <count>3</count>
        <list>
            <DnsMapping>
            <hostName>host_1</hostName>
            <ipAddress>1.2.3.7</ipAddress>
            </DnsMapping>
            <DnsMapping>
            <hostName>host_2</hostName>
            <ipAddress>1.2.3.5</ipAddress>
            </DnsMapping>
            <DnsMapping>
            <hostName>host_3</hostName>
            <ipAddress>1.2.3.5</ipAddress>
            </DnsMapping>
        </list>
        </mappings>
    </DnsOverride>
    </data>
</ServiceResponse>