Gateway IPs

List

Retrieve Criteria Gateway IP List of a session server with the specified ID.

GET/api/LogonHours/{id}/Criteria/GatewayIPs
Path parameters
id*integer (int32)

The ID of a session server for which to retrieve the Criteria settings.

Response

Success

Body
gatewayIPnullable string

The gateway IP.

Request
const response = await fetch('/api/LogonHours/{id}/Criteria/GatewayIPs', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "gatewayIP": "text"
  }
]

Add

Add a gateway IP to the Gateway IP List of the Criteria settings.

POST/api/LogonHours/{id}/Criteria/GatewayIPs
Path parameters
id*integer (int32)

The ID of a session server for which to modify the Criteria settings.

Body

Gateway IP configuration.

ipnullable string

The IP of the gateway to add to the Criteria.

gatewayIdnullable integer (int32)

The ID of the gateway to add to the Criteria.

Response

Created

Request
const response = await fetch('/api/LogonHours/{id}/Criteria/GatewayIPs', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json; api-version=1.0"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "status": 1,
  "detail": "text",
  "instance": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Remove

Remove a gateway IP from the Gateway IP List of the Criteria settings.

DELETE/api/LogonHours/{id}/Criteria/GatewayIPs
Path parameters
id*integer (int32)

The ID of a session server for which to modify the Criteria settings.

Body

Gateway IP configuration.

ip*nullable string

The IP of the gateway to remove from the Criteria.

Response

No Content

Request
const response = await fetch('/api/LogonHours/{id}/Criteria/GatewayIPs', {
    method: 'DELETE',
    headers: {
      "Content-Type": "application/json; api-version=1.0"
    },
    body: JSON.stringify({
      "ip": "text"
    }),
});
const data = await response.json();
Response
{
  "type": "text",
  "title": "text",
  "status": 1,
  "detail": "text",
  "instance": "text",
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Last updated

Was this helpful?