Software Secure Workload
Activity Configure

API to Delete a Config

This endpoint deletes a config from given Appliance.

DELETE /openapi/v1/ext_appliances/<id>/config/<config_id>

where <id> is the appliance_id that can be obtained from the API to Get List of Appliances, <config_id> is the id that can be obtained from API to Get the Configs on Config Type.

Parameters: The request URL contains the following parameters

Name

Type

Description

id

string

Specify the Appliance ID

config_id

string

Specify the config ID

Response object: Returns the status of the config deleted for given Appliance.

Sample response

resp = restclient.delete('/ext_appliances/63c1272039042a1c0ddd3e20/config/63c1272039042a1c0ddd3e21')
  if resp.status_code == 200:
    parsed_resp = json.loads(resp.content)
    print json.dumps(parsed_resp)

Sample response

{
    "status": 200,
    "code": 1000,
    "message": "deleted"
  }