Tines Stories
  1. API
  2. Admin
  3. Action egress control rules
  1. API
  2. Admin
  3. Action egress control rules

Action egress control rules: Update

Last updated

Description

Update an existing action egress control rule. PUT and PATCH both replace the whole rule, so include description, allowed_action_types, and either ip or fqdn in every request, even if their values haven't changed.

Request

HTTP Method: PUT, PATCH

Field description

Field Description
id Action egress control rule ID.
ip IP address or CIDR range of the rule.
fqdn The FQDN for the rule. Only IP or FQDN is allowed, not both.
description Human-readable description of the rule.
allowed_action_types Array of action types allowed to use the IP or FQDN. The options are "http-request" and "send-email". Any other strings will not work. Note: Send email allowlist is available for FQDNs only.

Sample requests

curl -X PUT \
  --proto '=https' --tlsv1.2 \
  https://<tenant-domain>/api/v1/admin/action_egress_control_rules/1 \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
  -d '{
      "ip": "192.168.1.1",
      "description": "Example IP",
      "allowed_action_types": ["http-request"]
    }'
curl -X PUT \
  --proto '=https' --tlsv1.2 \
  https://<tenant-domain>/api/v1/admin/action_egress_control_rules/1 \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>' \
  -d '{
      "fqdn": "sub.example.com",
      "description": "Example FQDN",
      "allowed_action_types": ["http-request", "send-email"]
    }'

Response

A successful request will return status 200 and the updated action egress control rule object.

See list for more details about the rule object.

Was this helpful?