New Hibernate demo

  • 27 October 2022
  • 4 replies
  • 89 views

Userlevel 4
Badge +19

when you play to many video games as a child

 

Check out this new hibernate video for AWS.
 

 


4 replies

Userlevel 3
Badge +14

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

Userlevel 4
Badge +19
#!/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)

 

Userlevel 4
Badge +19

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

 

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

Reply