For API version information, refer to the API Version History section.
Delete a PC option profile for compliance scans 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.
Note: The Delete PC option profile API is available as part of one of the following subscription combinations only:
- PC and API add-on
- PC, SCA, and API add-on
- VMDR, SCA, and API add-on
Parameter |
Required/Optional |
Data Type |
Description |
---|---|---|---|
action=delete |
Required |
String |
Specify action to delete PC option profile. |
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. |
API Request
curl -u "USERNAME:PASSWORD" -H "X-Requested-With:curl" -X POST"action=delete&id=51491401" "http://<qualys_base_url>/api/2.0/fo/subscription/option_profile/pc/"
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-10T11:10:36Z</DATETIME>
<TEXT>Option Profile Deleted Successfully</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>51491401</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
<platform API server>/api/2.0/simple_return.dtd
Delete a PC option profile for compliance scans 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.
Note: The Delete PC option profile API is available as part of one of the following subscription combinations only:
- PC and API add-on
- PC, SCA, and API add-on
- VMDR, SCA, and API add-on
Parameter |
Required/Optional |
Data Type |
Description |
---|---|---|---|
action=delete |
Required |
String |
Specify action to delete PC option profile. |
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. |
API Request
curl -s -S -H 'X-Requested-With:curl demo2' -u "quay_sm:Qatemp123#" -d "action=delete&id=2642191" "https://<qualys_base_url>/api/3.0/fo/subscription/option_profile/pc/"
XML Output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM https://
<qualys_base_url>/api/3.0/simple_return.dtd>
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2024-07-23T07:39:39Z</DATETIME>
<TEXT>Option Profile Deleted Successfully</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>2642191</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
<platform API server>/api/3.0/simple_return.dtd
Delete a PC option profile for compliance scans 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.
Note: The Delete PC option profile API is available as part of one of the following subscription combinations only:
- PC and API add-on
- PC, SCA, and API add-on
- VMDR, SCA, and API add-on
Parameter |
Required/Optional |
Data Type |
Description |
---|---|---|---|
action=delete |
Required |
String |
Specify action to delete PC option profile. |
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. |
API Request
curl -s -S -H 'X-Requested-With:curl demo2' -u "quay_sm:Qatemp123#" -d "action=delete&id=2642191" "https://<qualys_base_url>/api/4.0/fo/subscription/option_profile/pc/"
XML Output
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE SIMPLE_RETURN SYSTEM https://
<qualys_base_url>/api/4.0/simple_return.dtd>
<SIMPLE_RETURN>
<RESPONSE>
<DATETIME>2024-07-23T07:39:39Z</DATETIME>
<TEXT>Option Profile Deleted Successfully</TEXT>
<ITEM_LIST>
<ITEM>
<KEY>ID</KEY>
<VALUE>2642191</VALUE>
</ITEM>
</ITEM_LIST>
</RESPONSE>
</SIMPLE_RETURN>
The following table depicts the information about the different versions of this API along with the status:
API Version | API Status | Release Date |
/api/2.0/fo/subscription/option_profile/pc/?action=delete | To be deprecated | February 2025 |
/api/3.0/fo/subscription/option_profile/pc/?action=delete |
Active |
February 2025 |
/api/4.0/fo/subscription/option_profile/pc/?action=delete | Active | August 2024 |
Was this topic helpful?