New Hibernate demo | Nutanix Community
Skip to main content

when you play to many video games as a child

 

Check out this new hibernate video for AWS.
 

 

Do you have a link with more details for the hibernate python script and the VM you created?  


Does this url work for you
https://cpanel-backend-prod.frame.nutanix.com/api/v1/docs/clusters/index.html#/ ?

 


#!/usr/local/bin/python
import hashlib
import hmac
import time
import requests
import base64

# Client credentials
client_id = "**********.img.frame.nutanix.com"
client_secret = "*************"
cluster_id ="********-****-****-****-**********"
# Create signature
timestamp = int(time.time())
to_sign = "%s%s" % (timestamp, client_id)
signature = hmac.new(client_secret, to_sign, hashlib.sha256).hexdigest()
#stage_domain = "https://api-gateway-staging.staging.frame.nutanix.com/"
prod_domain = "https://api-gateway-prod.frame.nutanix.com"
domain = prod_domain

# Prepare http request headers
headers = { "X-Frame-ClientId": client_id, "X-Frame-Timestamp": str(timestamp), "X-Frame-Signature": signature }

hibernate_req = requests.post(domain + "/v1/clusters/" + cluster_id + "/hibernate" , headers=headers)

 


I’m looking forward to holiday themed videos from now on ;)


Reply