---
title: "CreatePolicyDto"
url: "https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598/schemas/CreatePolicyDto"
---

> Full API specification: https://public-api-docs.cipherscale.com/apis/cipherscale-api-1/versions/fef69080-6094-4620-8bf0-16fd2de7b598.md

# CreatePolicyDto

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Cipherscale API
  version: "1.0"
servers:
  - url: https://public-api.cipherscale.com/qa
    description: Cipherscale Public API Server
components:
  schemas:
    CreatePolicyDto:
      type: object
      properties:
        groups:
          type: array
          items:
            type: string
        users:
          type: array
          items:
            type: string
        devices:
          type: array
          items:
            type: string
        resources:
          type: array
          items:
            type: string
        gateways:
          type: array
          items:
            type: string
        rule:
          type: string
        name:
          type: string
        description:
          type: string
        allGroups:
          type: object
          default: false
        allUsers:
          type: object
          default: false
        allDevices:
          type: object
          default: false
        allResources:
          type: object
          default: false
        sourceIps:
          type: array
          items:
            type: string
        type:
          type: string
          enum:
            - PRIVATE
            - SAAS
            - INTERNET
            - SITETOSITE
        mode:
          type: string
          enum:
            - LOCAL
            - RESTRICTED
            - INTERNET_ACCESS_POINT
        action:
          type: boolean
      required:
        - name
        - allGroups
        - allUsers
        - allDevices
        - allResources
        - type
        - action
```
