Overview
IAM
- Account
- Users
- API Tokens
CDN
- IP addresses list
- CDN service
- Origins
- CDN resources
- CDN activity logs
- Log forwarding
- Log viewer
- Logs uploader
- Tools
- Rules
- Rule templates
- Purge history
- SSL certificates
- CA certificates
- CDN Statistics
- Advanced analytics
- Origin shielding
- Let's Encrypt certificates
Managed DNS
- Analyze
- Locations
- Lookup
- Metrics
- Pickers
- DNS Clients
- Zones
- DNSSEC
- RRsets
Cloud
- Bare Metal
- Container as a Service
- Cost Reports
- DDOS Protection
- File Shares
- Firewalls
- Floating IPs
- Function as a Service
- GPU Cloud
- IP Ranges
- Images
- Inference Instances
- Instances
- Load Balancers
- Logging
- Managed Kubernetes
- Managed PostgreSQL
- Networks
- Placement Groups
- Projects
- Quotas
- Regions
- Registry
- Reservations
- Reserved IPs
- Routers
- SSH Keys
- Secrets
- Service Endpoints
- Snapshot Schedules
- GETGet all policies
- POSTCreate a policy
- POSTGet maximum usage quota of resources if all snapshots create by the policy
- GETGet the policy by id
- DELDelete the policy
- PATCHUpdate the policy
- POSTAdd new schedules to the policy
- PUTAdd volumes to the policy if not present
- POSTRemove schedules from the policy
- PUTRemove volumes from the policy
- POSTGet maximum usage cost of resources if all snapshots are created by the policy
- GETGet a schedule by id
- PATCHPatch the schedule
- GET
- Snapshots
- Tasks
- User Actions
- User Role Assignments
- Volumes
Security
- Event Logs
- BGP announces
- Security Templates
- Profiles
FastEdge
- Apps
- Binaries
- FastEdge Clients
- FastEdge Secrets
- Stats
- FastEdge Templates
WAAP
- WAAP Service
- Domains
- Policies
- Analytics
- Custom Page Sets
- Custom Rules
- Firewall Rules
- Advanced Rules
- Tags
- Network Organizations
- API Discovery
- IP Spotlight
- Security Insights
Web Security
- Billing Statistics
- Resources
Video Streaming
- Streams
- Overlays
- Broadcasts
- Restreams
- Videos
- Subtitles
- Directories
- Playlists
- QualitySets
- Players
- AI
- Streaming Statistics
Object Storage
- Notifications
- Key
- Location
- Storage
- Storage Statistics
Snapshot Schedules
Add new schedules to the policy
POST
/
cloud
/
v1
/
lifecycle_policy
/
{project_id}
/
{region_id}
/
{policy_id}
/
add_schedules
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v1/lifecycle_policy/{project_id}/{region_id}/{policy_id}/add_schedules \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"schedules": [
{
"day_of_week": "fri, tue",
"hour": "0, 20",
"max_quantity": 2,
"minute": "30",
"resource_name_template": "CRON reserve snap of the volume {volume_id}",
"retention_time": {
"weeks": 2
},
"timezone": "UTC",
"type": "cron"
},
{
"days": 0,
"hours": 2,
"max_quantity": 2,
"minutes": 1,
"resource_name_template": "INTERVAL reserve snap of the volume {volume_id}",
"retention_time": {
"days": 1
},
"type": "interval",
"weeks": 0
}
]
}'
Copy
Ask AI
{
"action": "volume_snapshot",
"id": 1,
"name": "schedule_1",
"project_id": 1,
"region_id": 1,
"schedules": [
{
"day_of_week": "*",
"hour": "0, 10, 20",
"id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
"max_quantity": 2,
"minute": "30",
"owner": "lifecycle_policy",
"owner_id": 1,
"resource_name_template": "reserve snap of the volume {volume_id}",
"type": "cron",
"user_id": 12
}
],
"status": "active",
"user_id": 11,
"volumes": [
{
"volume_id": "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f",
"volume_name": "test schedule"
}
]
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Examples:
1
Region ID
Examples:
1
Lifecycle policy ID.
Examples:
1
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.gcore.com/cloud/v1/lifecycle_policy/{project_id}/{region_id}/{policy_id}/add_schedules \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"schedules": [
{
"day_of_week": "fri, tue",
"hour": "0, 20",
"max_quantity": 2,
"minute": "30",
"resource_name_template": "CRON reserve snap of the volume {volume_id}",
"retention_time": {
"weeks": 2
},
"timezone": "UTC",
"type": "cron"
},
{
"days": 0,
"hours": 2,
"max_quantity": 2,
"minutes": 1,
"resource_name_template": "INTERVAL reserve snap of the volume {volume_id}",
"retention_time": {
"days": 1
},
"type": "interval",
"weeks": 0
}
]
}'
Copy
Ask AI
{
"action": "volume_snapshot",
"id": 1,
"name": "schedule_1",
"project_id": 1,
"region_id": 1,
"schedules": [
{
"day_of_week": "*",
"hour": "0, 10, 20",
"id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
"max_quantity": 2,
"minute": "30",
"owner": "lifecycle_policy",
"owner_id": 1,
"resource_name_template": "reserve snap of the volume {volume_id}",
"type": "cron",
"user_id": 12
}
],
"status": "active",
"user_id": 11,
"volumes": [
{
"volume_id": "3ed9e2ce-f906-47fb-ba32-c25a3f63df4f",
"volume_name": "test schedule"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.