Create Network

POST/api/2.0/fo/network/?action=create

Create a new custom network.

Permissions - This API is available to Managers only.

Know more - Before you’re ready to start scanning, you’ll need to 1) assign scanner appliance(s) to your network, and 2) add host assets to your network (assign asset groups to it).

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=create

Required String 

Specify action=create to create the networks.

name={value}

Required String 

A user-defined friendly name for your network. A successful request will return a unique network ID and this is used to manage your network using the API.

Sample - Create Custom NetworkSample - Create Custom Network

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=create&name=My+Network" "https://<qualys_base_url>/api/2.0/fo/network/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "https://<qualys_base_url>/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2018-01-14T04:37:24Z</DATETIME>
    <TEXT>Network created with ID</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>id</KEY>
        <VALUE>1103</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

<platform API server>/api/2.0/simple_return.dtd