---
title: "CreateMappingSecurityRule"
method: POST
path: "/v1/vhost/mapping/security-rule/"
tags: ["vhosts"]
---

# CreateMappingSecurityRule

`POST /v1/vhost/mapping/security-rule/`

Create a new mapping security rule.

## Request body

- DtoCreateMappingSecurityRule
  - `allowedIps` string[]
  - `bandwidthBpsLimitPerConnection` integer
  - `bandwidthLimitOnlyAfterBytes` integer
  - `blockedIps` string[]
  - `description` string
  - `maxConnectionsPerIp` integer
  - `name` string
  - `responseCodeOnMaxConnections` integer
  - `responseCodeOnMaxRequests` integer
  - `rpsHardLimitPerIp` integer
  - `rpsSoftLimitPerIp` integer

## Response `201`

MappingSecurityRuleCreated

- object

## Changes

> 51 revisions in range; 3 could not be searched.

- **2025-04-15** `b7f207bdff30` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/goinfinite/apis/osapi/changes/v1/vhost/mapping/security-rule/post.md)

---

[API](https://skmtc.dev/goinfinite/apis/osapi.md) · [All operations](https://skmtc.dev/goinfinite/apis/osapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goinfinite/osapi/revisions/7320a5d8ef9e/schema)
