VBAC state: Request

Prev Next

To get the VBAC state, send the following request:

GET https://<IA_IP_address>:<port_number>/config/v1/rbac/activation?status=<status>

Required header:

Cookie: px=<token>

Note

To use this request, your user account must be assigned to the Admin role.

Options

  • IA_IP_address—The IP address of the NDR appliance running the NDR API.

  • port_number—The port number of the NDR appliance running the NDR API.

  • token—This token authenticates the session. By default, the session times out after 24 hours.

Example

GET https://xxx.xxx.xxx.xxx:443/config/v1/rbac/activation?status=1

Required header:

Cookie: px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

VBAC state: Response

HTTP/1.1 [Response Code] [Response Message]
{
  "status": <status>
}
Response fields
  • Response Code—A standard HTTP response code.

    • 200—Request successful; VBAC state was returned.

  • status—1 means VBAC is enabled, 0 means VBAC is disabled.

Example
HTTP/1.1 200 OK
{
  "status": 1
}

cURL code sample: VBAC state

curl -k --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" https://xxx.xxx.xxx.xxx:443/config/v1/rbac/activation

This cURL sample includes the following options:

  • -k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.

  • --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"—This option specifies the authentication token for this session.

  • https://xxx.xxx.xxx.xxx:443/config/v1/rbac/activation—The VBAC request URL. Replace xxx.xxx.xxx.xxx with the IP address of your NDR appliance.

Results

This example gets the current VBAC state.