> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview snapshot policy price

> Get the maximum usage cost for resources if the policy creates all snapshots.



## OpenAPI

````yaml /api-reference/services_documented/cloud_api.yaml post /cloud/v2/pricing/{project_id}/{region_id}/lifecycle_policy
openapi: 3.1.0
info:
  title: Gcore OpenAPI – Cloud API
  description: >-
    This OpenAPI is an aggregated OpenAPI specification that unifies all Gcore
    products into a single file. It covers Cloud, CDN, DNS, WAAP, DDoS
    Protection, Object Storage, Streaming, and FastEdge services.
  version: '2026-05-11T15:10:30.328297+00:00'
servers:
  - url: https://api.gcore.com
security:
  - APIKey: []
tags:
  - name: Bare Metal
    x-displayName: Bare Metal
  - name: Container as a Service
    x-displayName: Container as a Service
  - name: Cost Reports
    x-displayName: Cost Reports
  - name: DDoS Protection
    x-displayName: DDoS Protection
  - name: Everywhere Inference
    x-displayName: Everywhere Inference
  - name: Everywhere Inference Apps
    x-displayName: Everywhere Inference Apps
  - name: File Shares
    x-displayName: File Shares
  - name: Floating IPs
    x-displayName: Floating IPs
  - name: Function as a Service
    x-displayName: Function as a Service
  - name: GPU Bare Metal
    x-displayName: GPU Bare Metal
  - name: GPU Virtual
    x-displayName: GPU Virtual
  - name: IP Ranges
    x-displayName: IP Ranges
  - name: Images
    x-displayName: Images
  - name: Instances
    x-displayName: Instances
  - name: Load Balancers
    x-displayName: Load Balancers
  - name: Logging
    x-displayName: Logging
  - name: Managed Kubernetes
    x-displayName: Managed Kubernetes
  - name: Managed PostgreSQL
    x-displayName: Managed PostgreSQL
  - name: Networks
    x-displayName: Networks
  - name: Placement Groups
    x-displayName: Placement Groups
  - name: Projects
    x-displayName: Projects
  - name: Quotas
    x-displayName: Quotas
  - name: Regions
    x-displayName: Regions
  - name: Registry
    x-displayName: Registry
  - name: Reservations
    x-displayName: Reservations
  - name: Reserved IPs
    x-displayName: Reserved IPs
  - name: Routers
    x-displayName: Routers
  - name: SSH Keys
    x-displayName: SSH Keys
  - name: Secrets
    x-displayName: Secrets
  - name: Security Groups
    x-displayName: Security Groups
  - name: Snapshot Schedules
    x-displayName: Snapshot Schedules
  - name: Snapshots
    x-displayName: Snapshots
  - name: Tasks
    x-displayName: Tasks
  - name: User Actions
    x-displayName: User Actions
  - name: User Role Assignments
    x-displayName: User Role Assignments
  - name: Volumes
    x-displayName: Volumes
paths:
  /cloud/v2/pricing/{project_id}/{region_id}/lifecycle_policy:
    post:
      tags:
        - Snapshot Schedules
      summary: Preview snapshot policy price
      description: >-
        Get the maximum usage cost for resources if the policy creates all
        snapshots.
      operationId: LifecyclePolicyPricingV2ViewSet.post
      parameters:
        - in: path
          name: project_id
          required: true
          description: Project ID
          schema:
            description: Project ID
            example: 1
            examples:
              - 1
            format: int64
            title: Project Id
            type: integer
        - in: path
          name: region_id
          required: true
          description: Region ID
          schema:
            description: Region ID
            example: 1
            examples:
              - 1
            format: int64
            title: Region Id
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PricingLifecyclePolicyV2Serializer'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LifeCyclePolicyV2ResponseSerializer'
components:
  schemas:
    PricingLifecyclePolicyV2Serializer:
      properties:
        schedules:
          default: []
          description: List of schedules associated with the policy.
          items:
            $ref: '#/components/schemas/CreateScheduleSerializer'
          maxItems: 10
          title: Schedules
          type: array
        volume_ids:
          description: List of volume IDs.
          example:
            - 3ed9e2ce-f906-47fb-ba32-c25a3f63df4f
          examples:
            - - 3ed9e2ce-f906-47fb-ba32-c25a3f63df4f
          items:
            format: uuid4
            type: string
          maxItems: 100
          minItems: 1
          title: Volume Ids
          type: array
          uniqueItems: true
      required:
        - volume_ids
      title: PricingLifecyclePolicyV2Serializer
      type: object
    LifeCyclePolicyV2ResponseSerializer:
      description: Billing response preview schema for server instance.
      example:
        currency_code: USD
        discount: 0
        per_hour:
          volumes:
            - discount: 0.1
              price: 78
              type: cold
            - discount: 0
              price: 78
              type: ssd_hiiops
            - discount: 0.1
              price: 78
              type: standard
        per_month:
          volumes:
            - discount: 0.1
              price: 178
              type: cold
            - discount: 0
              price: 178
              type: ssd_hiiops
            - discount: 0.1
              price: 178
              type: standard
        price_status: show
        price_without_discount_per_month: 734.4
        tax_percent: 17
        total_price_per_hour: 1.02
        total_price_per_month: 734.4
      examples:
        - currency_code: USD
          discount: 0
          per_hour:
            volumes:
              - discount: 0.1
                price: 78
                type: cold
              - discount: 0
                price: 78
                type: ssd_hiiops
              - discount: 0.1
                price: 78
                type: standard
          per_month:
            volumes:
              - discount: 0.1
                price: 178
                type: cold
              - discount: 0
                price: 178
                type: ssd_hiiops
              - discount: 0.1
                price: 178
                type: standard
          price_status: show
          price_without_discount_per_month: 734.4
          tax_percent: 17
          total_price_per_hour: 1.02
          total_price_per_month: 734.4
      properties:
        currency_code:
          description: Currency code (3-letter code per ISO 4217).
          enum:
            - AZN
            - EUR
            - USD
          example: USD
          examples:
            - USD
            - EUR
            - AZN
          title: Currency Code
          type: string
        discount:
          anyOf:
            - type: number
            - type: 'null'
          description: Discount value within range [0..1] where 1 is 100%.
          examples:
            - 0.1
            - 0.02
            - 0.99
          title: Discount
        per_hour:
          $ref: '#/components/schemas/VolumePricingWithDiscountPerPeriodSerializer'
          description: Prices per category charged per hour.
          examples:
            - volumes:
                - discount: 0.1
                  price: 78
                  type: cold
                - discount: 0
                  price: 78
                  type: ssd_hiiops
                - discount: 0.1
                  price: 78
                  type: standard
        per_month:
          $ref: '#/components/schemas/VolumePricingWithDiscountPerPeriodSerializer'
          description: Prices per category charged per month.
          examples:
            - volumes:
                - discount: 0.1
                  price: 178
                  type: cold
                - discount: 0
                  price: 178
                  type: ssd_hiiops
                - discount: 0.1
                  price: 178
                  type: standard
        price_status:
          $ref: '#/components/schemas/PriceDisplayStatus'
          description: Price status for the UI.
          examples:
            - show
            - hide
        price_without_discount_per_month:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per month without discount.
          examples:
            - 800
            - 1000.5
          title: Price Without Discount Per Month
        tax_percent:
          description: Tax rate applied to the subtotal, represented as a percentage
          example: 0
          examples:
            - 0
            - 17
            - 12
          title: Tax Percent
          type: number
        total_price_per_hour:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per hour.
          examples:
            - 1.02
            - 2.5
          title: Total Price Per Hour
        total_price_per_month:
          anyOf:
            - type: number
            - type: 'null'
          description: Total price VAT inclusive per month.
          examples:
            - 734.4
            - 1200
          title: Total Price Per Month
      required:
        - currency_code
        - discount
        - per_hour
        - per_month
        - price_status
        - price_without_discount_per_month
        - total_price_per_hour
        - total_price_per_month
        - tax_percent
      title: LifeCyclePolicyV2ResponseSerializer
      type: object
    CreateScheduleSerializer:
      description: >-
        List of schedules associated with the policy. If the schedule made
        'max_quantity' snapshots, a new snapshot will be created in time, but
        the oldest from the schedule`s snapshots will be deleted. If
        'retention_time'  was set and the schedule`s snapshots will be delete
        after the specified period of time. In `resource_name_template` you can
        use such forms that will then be automatically filled in with values:
        '{`volume_id`}', '{`schedule_id`}', '{`lifecycle_policy_id`}',
        '{`datetime_utc`}', '{`local_datetime`}'.
      discriminator:
        mapping:
          cron:
            $ref: '#/components/schemas/CreateCronScheduleSerializer'
          interval:
            $ref: '#/components/schemas/CreateIntervalScheduleSerializer'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/CreateCronScheduleSerializer'
        - $ref: '#/components/schemas/CreateIntervalScheduleSerializer'
      title: CreateScheduleSerializer
    VolumePricingWithDiscountPerPeriodSerializer:
      properties:
        volumes:
          description: Prices of volumes per type over the specified period of time.
          example:
            discount: 0.1
            price: 78
            type: cold
          examples:
            - discount: 0.1
              price: 78
              type: cold
          items:
            anyOf:
              - $ref: '#/components/schemas/VolumePriceWithDiscountSerializer'
              - type: 'null'
          title: Volumes
          type: array
      required:
        - volumes
      title: VolumePricingWithDiscountPerPeriodSerializer
      type: object
    PriceDisplayStatus:
      enum:
        - error
        - hide
        - show
      title: PriceDisplayStatus
      type: string
    CreateCronScheduleSerializer:
      properties:
        day:
          description: Day of the month (1-31, '*') or a comma-separated list of days
          example: '5'
          examples:
            - '5'
          title: Day
          type: string
        day_of_week:
          description: >-
            Weekday or a comma-separated list of weekdays
            (mon,tue,wed,thu,fri,sat,sun,*)
          example: mon,fri
          examples:
            - mon,fri
          title: Day Of Week
          type: string
        hour:
          description: Hour (0-23, '*') or a comma-separated list of hours
          example: 0, 20
          examples:
            - 0, 20
          title: Hour
          type: string
        max_quantity:
          default: 2
          description: Number of stored resources.
          example: 2
          examples:
            - 2
          exclusiveMinimum: 0
          maximum: 10000
          title: Max Quantity
          type: integer
        minute:
          description: Minute (0-59, '*') or a comma-separated list of minutes
          example: '30'
          examples:
            - '30'
          title: Minute
          type: string
        month:
          description: Month (1-12, '*') or a comma-separated list of months
          example: 1,6
          examples:
            - 1,6
          title: Month
          type: string
        resource_name_template:
          default: >-
            Snapshot of volume {volume_id} created by policy
            {lifecycle_policy_id}
          description: Template for resource names.
          example: >-
            Snapshot of volume {volume_id} created by policy
            {lifecycle_policy_id}
          examples:
            - >-
              Snapshot of volume {volume_id} created by policy
              {lifecycle_policy_id}
          title: Resource Name Template
          type: string
        retention_time:
          $ref: '#/components/schemas/CreateIntervalTimeSerializer'
          description: Time after which the resource will be deleted
        timezone:
          description: A pytz timezone. Defaults to UTC.
          example: UTC
          examples:
            - UTC
          title: Timezone
          type: string
        type:
          const: cron
          description: Schedule type
          example: cron
          examples:
            - cron
          title: Type
          type: string
        week:
          description: ISO week (1-53, '*') or a comma-separated list of weeks
          example: '1'
          examples:
            - '1'
          title: Week
          type: string
      required:
        - type
      title: CreateCronScheduleSerializer
      type: object
    CreateIntervalScheduleSerializer:
      properties:
        days:
          description: Number of days to wait
          example: 0
          examples:
            - 0
          title: Days
          type: integer
        hours:
          description: Number of hours to wait
          example: 2
          examples:
            - 2
          title: Hours
          type: integer
        max_quantity:
          default: 2
          description: Number of stored resources.
          example: 2
          examples:
            - 2
          exclusiveMinimum: 0
          maximum: 10000
          title: Max Quantity
          type: integer
        minutes:
          description: Number of minutes to wait
          example: 1
          examples:
            - 1
          title: Minutes
          type: integer
        resource_name_template:
          default: >-
            Snapshot of volume {volume_id} created by policy
            {lifecycle_policy_id}
          description: Template for resource names.
          example: >-
            Snapshot of volume {volume_id} created by policy
            {lifecycle_policy_id}
          examples:
            - >-
              Snapshot of volume {volume_id} created by policy
              {lifecycle_policy_id}
          title: Resource Name Template
          type: string
        retention_time:
          $ref: '#/components/schemas/CreateIntervalTimeSerializer'
          description: Time after which the resource will be deleted
        type:
          const: interval
          description: Schedule type
          example: interval
          examples:
            - interval
          title: Type
          type: string
        weeks:
          description: Number of weeks to wait
          example: 0
          examples:
            - 0
          title: Weeks
          type: integer
      required:
        - type
      title: CreateIntervalScheduleSerializer
      type: object
    VolumePriceWithDiscountSerializer:
      properties:
        discount:
          anyOf:
            - type: number
            - type: 'null'
          description: Discount value within range [0..1] where 1 is 100%.
          examples:
            - 0.1
            - 0.02
            - 0.99
            - 0
          title: Discount
        price:
          description: Price for specified category.
          example: 78
          examples:
            - 78
          title: Price
          type: number
        type:
          $ref: '#/components/schemas/AllVolumeTypeEnum'
          description: Type of volume.
          examples:
            - ultra
            - ssd_lowlatency
            - cold
            - ssd_hiiops
      required:
        - type
        - discount
        - price
      title: VolumePriceWithDiscountSerializer
      type: object
    CreateIntervalTimeSerializer:
      properties:
        days:
          description: Number of days to wait
          example: 0
          examples:
            - 0
          title: Days
          type: integer
        hours:
          description: Number of hours to wait
          example: 2
          examples:
            - 2
          title: Hours
          type: integer
        minutes:
          description: Number of minutes to wait
          example: 1
          examples:
            - 1
          title: Minutes
          type: integer
        weeks:
          description: Number of weeks to wait
          example: 0
          examples:
            - 0
          title: Weeks
          type: integer
      title: CreateIntervalTimeSerializer
      type: object
    AllVolumeTypeEnum:
      enum:
        - cold
        - ssd_hiiops
        - ssd_local
        - ssd_lowlatency
        - standard
        - ultra
      title: AllVolumeTypeEnum
      type: string
  securitySchemes:
    APIKey:
      description: >-
        API key for authentication. Make sure to include the word `apikey`,
        followed by a single space and then your token.

        Example: `apikey 1234$abcdef`
      type: apiKey
      in: header
      name: Authorization

````