POST
/
cloud
/
v1
/
pricing
/
{project_id}
/
{region_id}
/
lifecycle_policy
Preview snapshot policy price
curl --request POST \
  --url https://api.gcore.com/cloud/v1/pricing/{project_id}/{region_id}/lifecycle_policy \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "action": "volume_snapshot",
  "name": "schedule_1",
  "schedules": [],
  "status": "active",
  "volume_ids": [
    "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"
  ]
}'
{
  "currency_code": "USD",
  "discount_percent": 0.16,
  "price_per_hour": 1,
  "price_per_month": 720,
  "price_status": "show",
  "price_without_discount_per_month": 604.8,
  "tax_percent": 17
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

Body

application/json
action
enum<string>
required

Action that the policy will perform.

Available options:
volume_snapshot
name
string
required

Name of the lifecycle policy.

Examples:

"schedule_1"

schedules
Schedules · array

List of schedules associated with the policy.

Maximum length: 10
status
enum<string>

Current status of the lifecycle policy.

Available options:
active,
paused
volume_ids
string<uuid4>[]

List of volume IDs.

Examples:
["3ed9e2ce-f906-47fb-ba32-c25a3f63df4f"]

Response

200 - application/json

OK

Response with prices per hour and per month

currency_code
enum<string> | null
required

Currency code (3 letter code per ISO 4217)

Available options:
AZN,
EUR,
USD
discount_percent
number | null
required

Actual discount relative value

Examples:

0.16

price_per_hour
number | null
required

Price of the item charged per hour

Examples:

1

price_per_month
number | null
required

Price of the item charged per month

Examples:

720

price_status
enum<string>
required

Price status for the UI

Available options:
error,
hide,
show
price_without_discount_per_month
number | null
required

Total price VAT inclusive per month without discount

Examples:

604.8

tax_percent
number
required

Tax rate applied to the subtotal, represented as a percentage

Examples:

0

17

12