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
- 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
Tasks
Get task
GET
/
cloud
/
v1
/
tasks
/
{task_id}
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
task = client.cloud.tasks.get(
"task_id",
)
print(task.id)
Copy
Ask AI
{
"acknowledged_at": "<string>",
"acknowledged_by": 123,
"client_id": 123,
"created_on": "2019-06-25T08:42:42Z",
"created_resources": {
"ai_clusters": [
"<string>"
],
"api_keys": [
"<string>"
],
"caas_containers": [
"<string>"
],
"ddos_profiles": [
123
],
"faas_functions": [
"<string>"
],
"faas_namespaces": [
"<string>"
],
"file_shares": [
"<string>"
],
"floatingips": [
"<string>"
],
"healthmonitors": [
"<string>"
],
"images": [
"<string>"
],
"inference_instances": [
"<string>"
],
"instances": [
"<string>"
],
"k8s_clusters": [
"<string>"
],
"k8s_pools": [
"<string>"
],
"l7polices": [
"<string>"
],
"l7rules": [
"<string>"
],
"laas_topic": [
"<string>"
],
"listeners": [
"<string>"
],
"loadbalancers": [
"<string>"
],
"members": [
"<string>"
],
"networks": [
"<string>"
],
"pools": [
"<string>"
],
"ports": [
"<string>"
],
"postgresql_clusters": [
"<string>"
],
"projects": [
123
],
"registry_registries": [
"<string>"
],
"registry_users": [
"<string>"
],
"routers": [
"<string>"
],
"secrets": [
"<string>"
],
"servergroups": [
"<string>"
],
"snapshots": [
"<string>"
],
"subnets": [
"<string>"
],
"volumes": [
"<string>"
]
},
"data": "<any>",
"detailed_state": "CLUSTER_CLEAN_UP",
"error": "<string>",
"finished_on": "<string>",
"id": "26986bc0-748a-4448-b836-0a2aa465eb06",
"job_id": "<string>",
"lifecycle_policy_id": 123,
"project_id": 123,
"region_id": 123,
"request_id": "<string>",
"schedule_id": "<string>",
"state": "RUNNING",
"task_type": "create_vm",
"updated_on": "<string>",
"user_client_id": 123,
"user_id": 123
}
Authorizations
API key for authentication.
Path Parameters
Task ID
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
task = client.cloud.tasks.get(
"task_id",
)
print(task.id)
Copy
Ask AI
{
"acknowledged_at": "<string>",
"acknowledged_by": 123,
"client_id": 123,
"created_on": "2019-06-25T08:42:42Z",
"created_resources": {
"ai_clusters": [
"<string>"
],
"api_keys": [
"<string>"
],
"caas_containers": [
"<string>"
],
"ddos_profiles": [
123
],
"faas_functions": [
"<string>"
],
"faas_namespaces": [
"<string>"
],
"file_shares": [
"<string>"
],
"floatingips": [
"<string>"
],
"healthmonitors": [
"<string>"
],
"images": [
"<string>"
],
"inference_instances": [
"<string>"
],
"instances": [
"<string>"
],
"k8s_clusters": [
"<string>"
],
"k8s_pools": [
"<string>"
],
"l7polices": [
"<string>"
],
"l7rules": [
"<string>"
],
"laas_topic": [
"<string>"
],
"listeners": [
"<string>"
],
"loadbalancers": [
"<string>"
],
"members": [
"<string>"
],
"networks": [
"<string>"
],
"pools": [
"<string>"
],
"ports": [
"<string>"
],
"postgresql_clusters": [
"<string>"
],
"projects": [
123
],
"registry_registries": [
"<string>"
],
"registry_users": [
"<string>"
],
"routers": [
"<string>"
],
"secrets": [
"<string>"
],
"servergroups": [
"<string>"
],
"snapshots": [
"<string>"
],
"subnets": [
"<string>"
],
"volumes": [
"<string>"
]
},
"data": "<any>",
"detailed_state": "CLUSTER_CLEAN_UP",
"error": "<string>",
"finished_on": "<string>",
"id": "26986bc0-748a-4448-b836-0a2aa465eb06",
"job_id": "<string>",
"lifecycle_policy_id": 123,
"project_id": 123,
"region_id": 123,
"request_id": "<string>",
"schedule_id": "<string>",
"state": "RUNNING",
"task_type": "create_vm",
"updated_on": "<string>",
"user_client_id": 123,
"user_id": 123
}
Assistant
Responses are generated using AI and may contain mistakes.