func (c *APIClient) PowerOn(strID string) error {
	id := types.StringID(strID)
	if id.IsEmpty() {
		return fmt.Errorf("ServerID is invalid: %s", strID)
	}
	return sacloud.NewServerOp(c.caller).Boot(context.Background(), c.Zone, id)
}
PowerOn power on
package sakuracloud
import (
	"context"
	"fmt"
	"github.com/sacloud/libsacloud/v2/sacloud"
	"github.com/sacloud/libsacloud/v2/sacloud/types"
)
func (c *APIClient) State(strID string) (string, error) {
	id := types.StringID(strID)
	if id.IsEmpty() {
		return "", fmt.Errorf("ServerID is invalid: %s", strID)
	}
	server, err := sacloud.NewServerOp(c.caller).Read(context.Background(), c.Zone, id)
	if err != nil {
		return "", err
	}
	return string(server.InstanceStatus), nil
}