Delete Certificate Attributes

The delete certificates attributes API initiates a request to delete the existing certificate attributes.

Before you begin

  • The user should have the ACF permission to delete certificate attributes.
  • The certificate attribute with the specified name and label combination should already exist.

Request Structure

Endpoint: /certificate/attribute
Type: DELETE
Sample URL:
https://<IP/HostName/TenantName>:<GWPORT>/avxapi/certificate/attribute?gwsource=external

To understand the elements of the sample URL, click here.

Headers
Content-Type: application/json
Table 1. Input Parameters
Name Description
sessionId

Header

(Mandatory) Session Id received after login.

Type: String

Constraint: Required if username and password are not provided.

username

Header

(Mandatory) AppViewX login username.

Type: String

Constraint: Required if sessionId is not provided.

password

Header

(Mandatory) AppViewX login password.

Type: String

Constraint: Required if sessionId is not provided.

Content-Type

Header

(Mandatory) Specifies the nature of the data in the payload.

Type: String

Constraint: Value of the parameter should be ‘application/json’

gwsource

Query

(Mandatory) Source from which the request is triggered. (E.g. external)

Type: String

name

Query

(Mandatory) Name of the certificate attribute that has to be deleted.

Type: String

Response Structure

Response returns string of type application/json with the following body parameters:

Table 2. Parameters
Name Description
response Message indicating whether the field has been successfully deleted or not.

Message: Deleted Successfully - [approver1]. Failed to delete - []

message Success message or failure description in case of error.

Type: String

appStatusCode Application specific status code for the response. It is a non-null value for a failure response.

Type: String

tags Additional information in case of failure response.

Status Codes

HTTP Code appStatusCode Response Message
202 Accepted NA Certificate attribute deleted successfully.
401 Unauthorized AVX_GW_003 Authentication failed, reason - Invalid Credentials.

Remediation: Ensure that valid username and password or valid sessionId is provided as header parameters.

404 Not Found NO_RECORDS_FOUND No matching records found.

Remediation: Check and ensure that the value provided for the name query parameter is accurate.

400 Bad Request MANDATORY_FIELD_MISSING Mandatory field is missing or invalid - name.

Remediation: Ensure that the name query parameter is available in the request.

Sample Request/Response

Request Payload

No payload for DELETE request.

Response
{
 "response": "Deleted Successfully - [approver2]. Failed to delete - []",
 "message": "Certificate attribute deleted successfully",
 "appStatusCode": null,
 "tags": {},
 "headers": null
 }

References

Understanding the sample URL
  • IP/HostName/TenantName: Replace with the actual IP address, hostname, or tenant name based on the specific configuration in AppViewX.
    • IP: A unique identifier assigned to each device connected to a computer network that uses the Internet Protocol for communication

      The IP address will be included in the endpoint URL for an on-prem deployment.

    • HostName: A human-readable label assigned to a device (host) on a network

      The hostname will be included in the endpoint URL for an on-prem deployment.

    • TenantName: An identifier label for a tenant given to indicate which tenant's data the API request will access/modify

      The tenant name will be included in the endpoint URL for a SaaS deployment.

  • GWPORT: AppViewX gateway port

    A gateway port refers to a network port through which data is sent and received to communicate with a gateway in an on-prem deployment.

    Example: 31443

  • avxapi: Path parameter value (static) that is part of the endpoint's URL
  • Endpoint: Endpoint of the API, for example: execute-hook
  • gwsource: Source or origin of a gateway, for example: external.