Create Network

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

[POST]

Create a new custom network.

Permissions - This API is available to Managers only.

Input Parameters

Parameter

Description

action=create

(Required)

name={value}

(Required) 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 network

API request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With: Curl" -d "action=create&name=My+Network" "https://qualysapi.qualys.com/api/2.0/fo/network/"

XML output

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE SIMPLE_RETURN SYSTEM "https://qualysapi.qualys.com/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