github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/pauseunpause/doc.go (about)

     1  /*
     2  Package pauseunpause provides functionality to pause and unpause servers that
     3  have been provisioned by the OpenStack Compute service.
     4  
     5  Example to Pause and Unpause a Server
     6  
     7  	serverID := "32c8baf7-1cdb-4cc2-bc31-c3a55b89f56b"
     8  	err := pauseunpause.Pause(computeClient, serverID).ExtractErr()
     9  	if err != nil {
    10  		panic(err)
    11  	}
    12  
    13  	err = pauseunpause.Unpause(computeClient, serverID).ExtractErr()
    14  	if err != nil {
    15  		panic(err)
    16  	}
    17  */
    18  package pauseunpause