Delete VM Option Profile

GET POST/api/2.0/fo/subscription/option_profile/vm/?action=delete

Delete a VM option profile in the user's account.

Permissions - A Manager will be able to delete option profiles in the subscription. A Unit Manager will be able to delete option profiles owned by users in their business unit.

Input ParametersInput Parameters

Parameter

Required/Optional

Data Type

Description

action=delete

Required

String 

Specify action to delete VM option profiles.

echo_request={0|1}

Optional

Integer 

Specify 1 to view (echo) input parameters in the XML output. By default these are not included.

id={value}

Required

Integer 

The ID of the option profile.

Sample - Delete VM Option ProfileSample - Delete VM Option Profile

API Request

curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -X POST"action=delete&id=25121" "http://<qualys_base_url>/api/2.0/fo/subscription/option_profile/vm/"

XML Output

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM "http://<qualys_base_url>/api/2.0/simple_return.dtd">
<SIMPLE_RETURN>
  <RESPONSE>
    <DATETIME>2018-04-26T10:58:06Z</DATETIME>
    <TEXT>Option Profile Deleted Successfully</TEXT>
    <ITEM_LIST>
      <ITEM>
        <KEY>ID</KEY>
        <VALUE>25121</VALUE>
      </ITEM>
    </ITEM_LIST>
  </RESPONSE>
</SIMPLE_RETURN>

DTD

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