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

     1  /*
     2  Package resetstate provides functionality to reset the state of a server that has
     3  been provisioned by the OpenStack Compute service.
     4  
     5  Example to Reset a Server
     6  
     7  	serverID := "47b6b7b7-568d-40e4-868c-d5c41735532e"
     8  	err := resetstate.ResetState(client, id, resetstate.StateActive).ExtractErr()
     9  	if err != nil {
    10  		panic(err)
    11  	}
    12  */
    13  package resetstate