Skip to main content

New Hibernate demo

  • Oct 27, 2022 4:17 PM UTC
  • 4 replies
  • 169 views

dlink7
Forum|alt.badge.img+19

when you play to many video games as a child

 

Check out this new hibernate video for AWS.
 

 

4 replies

  • Voyager
  • Nov 28, 2022 8:28 PM UTC

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


dlink7
Forum|alt.badge.img+19
  • Author
  • Moderator
  • Nov 28, 2022 8:36 PM UTC

dlink7
Forum|alt.badge.img+19
  • Author
  • Moderator
  • Nov 28, 2022 8:38 PM UTC
#!/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)

 


bbbburns
Nutanix Employee
Forum|alt.badge.img+14
  • Nutanix Employee
  • Dec 1, 2022 7:04 PM UTC

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