Actions140
- Application Load Balancer Actions
- Contract Actions
- Datacenter Actions
- Firewall Rule Actions
- Image Actions
- IP Block Actions
- Kubernetes Cluster Actions
- LAN Actions
- Load Balancer Actions
- Location Actions
- NAT Gateway Actions
- Network Load Balancer Actions
- NIC Actions
- Node Pool Actions
- Private Cross-Connect Actions
- Request Actions
- Security Group Actions
- Server Actions
- Snapshot Actions
- Target Group Actions
- Volume Actions
NAT Gateway → Create Flow Log
AI-generatedSummary
Create Flow Log operation creates a flow log for a NAT Gateway in a specific datacenter, logging traffic to an IONOS Object Storage bucket. It requires the datacenter ID, NAT Gateway ID, and flow log configuration (name, direction, action, bucket). Optional toggles allow returning request tracking, response headers, and advanced request settings.
Inputs
- datacenterId (required) — ID of the datacenter containing the NAT Gateway
- natGatewayId (required) — ID of the NAT Gateway to attach the flow log to
- flowLogProperties (required) — Configuration for the flow log
- flowLogProperties.name — Name of the flow log
- flowLogProperties.direction — Traffic direction to log (INGRESS, EGRESS, BIDIRECTIONAL). Default: BIDIRECTIONAL
- flowLogProperties.action — Action to log (ACCEPTED, REJECTED, ALL). Default: ALL
- flowLogProperties.bucket (required) — IONOS Object Storage bucket name where flow logs will be stored
- includeRequestStatus — Include request tracking ID and status URL from async operations. Default: false
- includeResponseHeaders — Include HTTP response headers and status code in output. Default: false
- requestOptions.batching.batchSize — Items per batch (-1 disabled, 0 treated as 1). Default: 50
- requestOptions.batching.batchInterval — Milliseconds between batches. Default: 1000
- requestOptions.allowUnauthorizedCerts — Accept insecure SSL certificates. Default: false
- requestOptions.proxy — HTTP proxy URL
- requestOptions.timeout — Request timeout in milliseconds. Default: 10000 (min 1)
Output shape
object
Returns the created flow log from the IONOS Cloud API. If includeRequestStatus is true, the response includes request tracking info; if includeResponseHeaders is true, the response body is nested under a 'body' key with 'headers' and 'statusCode' alongside it.