Add New Asset Group

POST/api/2.0/fo/asset/group/?action=add

Add a new asset group in the user's account.

Click here to see the required permissions.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=add

Required String 

The POST method must be usedto specify action=add.

echo_request={0|1}

Optional Integer 

Specify 1 to show (echo) the request’s input parameters (names, values) in the XML output. When unspecified, parameters are not included in the XML output.

title={value}

Required String 

An asset group title. This name must be unique and can’t be “All”.

network_id={value}

Optional Integer 

The network ID of the network you want to assign the asset group to.

{parameters)

   

See Asset Group parameters

Sample - Add New Asset GroupSample - Add New Asset Group

API Request

curl -u "USERNAME:PASSWD" -H "X-Requested-With: Curl" -X "POST"-d "title=MY DEMO AG&network_id=1220&comments=This is comment&division=this is divison&location=this islocation&business_impact=high&cvss_enviro_cdp=low&cvss_enviro_td=low&cvss_enviro_cr=medium&cvss_enviro_ir=high&cvss_enviro_ar=medium&ips=10.1.1.1/31" "https://<qualys_base_url>/api/2.0/fo/asset/group/?action=add"

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-03-28T22:57:50Z</DATETIME>
    <TEXT>Asset Group successfully added.</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>395752377</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

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