---
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

---

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