New Hibernate demo | Nutanix Community
Skip to main content

New Hibernate demo


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
  • 1 reply
  • November 28, 2022

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
  • 107 replies
  • November 28, 2022

dlink7
Forum|alt.badge.img+19
  • Author
  • Moderator
  • 107 replies
  • November 28, 2022
#!/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
  • 60 replies
  • December 1, 2022

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