github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/suspendresume/doc.go (about) 1 /* 2 Package suspendresume provides functionality to suspend and resume servers that have 3 been provisioned by the OpenStack Compute service. 4 5 Example to Suspend and Resume a Server 6 7 serverID := "47b6b7b7-568d-40e4-868c-d5c41735532e" 8 9 err := suspendresume.Suspend(computeClient, serverID).ExtractErr() 10 if err != nil { 11 panic(err) 12 } 13 14 err := suspendresume.Resume(computeClient, serverID).ExtractErr() 15 if err != nil { 16 panic(err) 17 } 18 */ 19 package suspendresume