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
Patch the schedule
PATCH
/
cloud
/
v1
/
schedule
/
{project_id}
/
{region_id}
/
{schedule_id}
Copy
Ask AI
curl --request PATCH \
--url https://api.gcore.com/cloud/v1/schedule/{project_id}/{region_id}/{schedule_id} \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"day": "5",
"day_of_week": "mon,fri",
"days": 0,
"hour": "0, 20",
"hours": 2,
"max_quantity": 2,
"minute": "30",
"minutes": 1,
"month": "1,6",
"resource_name_template": "Snapshot of volume {volume_id} created by policy {lifecycle_policy_id}",
"retention_time": {
"days": 0,
"hours": 2,
"minutes": 1,
"weeks": 0
},
"timezone": "UTC",
"type": "cron",
"week": "1",
"weeks": 0
}'
Copy
Ask AI
{
"day": "5",
"day_of_week": "mon,fri",
"hour": "0, 20",
"id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
"max_quantity": 2,
"minute": "30",
"month": "1,6",
"owner": "lifecycle_policy",
"owner_id": 1,
"resource_name_template": "reserve snap of the volume {volume_id}",
"retention_time": {
"days": 0,
"hours": 2,
"minutes": 1,
"weeks": 0
},
"timezone": "UTC",
"type": "cron",
"user_id": 12,
"week": "1"
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Examples:
1
Region ID
Examples:
1
Schedule ID
Examples:
"1488e2ce-f906-47fb-ba32-c25a3f63df4f"
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
The response is of type object
.
The response is of type object
.
The response is of type object
.
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PATCH \
--url https://api.gcore.com/cloud/v1/schedule/{project_id}/{region_id}/{schedule_id} \
--header 'APIKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"day": "5",
"day_of_week": "mon,fri",
"days": 0,
"hour": "0, 20",
"hours": 2,
"max_quantity": 2,
"minute": "30",
"minutes": 1,
"month": "1,6",
"resource_name_template": "Snapshot of volume {volume_id} created by policy {lifecycle_policy_id}",
"retention_time": {
"days": 0,
"hours": 2,
"minutes": 1,
"weeks": 0
},
"timezone": "UTC",
"type": "cron",
"week": "1",
"weeks": 0
}'
Copy
Ask AI
{
"day": "5",
"day_of_week": "mon,fri",
"hour": "0, 20",
"id": "1488e2ce-f906-47fb-ba32-c25a3f63df4f",
"max_quantity": 2,
"minute": "30",
"month": "1,6",
"owner": "lifecycle_policy",
"owner_id": 1,
"resource_name_template": "reserve snap of the volume {volume_id}",
"retention_time": {
"days": 0,
"hours": 2,
"minutes": 1,
"weeks": 0
},
"timezone": "UTC",
"type": "cron",
"user_id": 12,
"week": "1"
}
Assistant
Responses are generated using AI and may contain mistakes.