Add/Edit Domain

GET POST/msp/asset_domain.php

Add and edit domains and related netblocks in the subscription. The domains defined may be used as targets for network scans (maps).

Basic HTTP authentication is required. Session based authentication is not supported using this API.

Permissions - Manager user role is required.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action={add | edit}

Required

String 

Specify action to add or edit domains.

domain={domain}

Required

String 

Specifies the domain name to add or edit. Include the domain name only; do not enter “www.” at the start of the domain name.

netblock={ranges}

Optional for add request, and Required for an edit request

Integer 

Specifies the netblock(s) associated with the domain name. Multiple netblocks are comma separated. Looking for more help? Search for none domain or netblock in online help (log in to your account and go to Help > Online Help).

For an edit request, it’s not possible to add or remove netblocks for a domain. To clear associated netblocks for an existing domain, specify netblock=

Sample - Add DomainSample - Add Domain

API Request

https://<qualys_base_url>/msp/asset_domain.php?action=add&domain=mydomain.com

Sample - Edit DomainSample - Edit Domain

API Request

https://<qualys_base_url>/msp/asset_domain.php?action=edit&domain=acme.com&netblock=10.10.10.0/24,10.1.1.0-10.1.1.100

DTD

<platform API server>/generic_return.dtd