func ListSnapshotChain(cli bce.Client, queryArgs *ListSnapshotChainArgs) (*ListSnapshotChainResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getSnapshotChainUri())
	req.SetMethod(http.GET)
	if queryArgs != nil {
		if len(queryArgs.OrderBy) != 0 {
			req.SetParam("orderBy", queryArgs.OrderBy)
		}
		if len(queryArgs.Order) != 0 {
			req.SetParam("order", queryArgs.Order)
		}
		if queryArgs.PageSize != 0 {
			req.SetParam("pageSize", strconv.Itoa(queryArgs.PageSize))
		}
		if queryArgs.PageNo != 0 {
			req.SetParam("pageNo", strconv.Itoa(queryArgs.PageNo))
		}
		if len(queryArgs.VolumeId) != 0 {
			req.SetParam("volumeId", queryArgs.VolumeId)
		}
	}
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &ListSnapshotChainResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}
ListSnapshotChain - list all snapshot chains with the specified parameters

PARAMS:
- cli: the client agent which can perform sending request
- queryArgs: arguments to list snapshot chains
RETURNS:
- *ListSnapshotChainResult: result of the snapshot chain list
- error: nil if success otherwise the specific error
package api
import (
	"encoding/json"
	"strconv"
	"github.com/baidubce/bce-sdk-go/bce"
	"github.com/baidubce/bce-sdk-go/http"
)
func CreateSnapshot(cli bce.Client, args *CreateSnapshotArgs) (*CreateSnapshotResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getSnapshotUri())
	req.SetMethod(http.POST)
	if len(args.ClientToken) != 0 {
		req.SetParam("clientToken", args.ClientToken)
	}
	jsonBytes, err := json.Marshal(args)
	if err != nil {
		return nil, err
	}
	body, err := bce.NewBodyFromBytes(jsonBytes)
	if err != nil {
		return nil, err
	}
	req.SetBody(body)
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &CreateSnapshotResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}
func ListSnapshot(cli bce.Client, queryArgs *ListSnapshotArgs) (*ListSnapshotResult, error) {
	req := &bce.BceRequest{}
	req.SetUri(getSnapshotUri())
	req.SetMethod(http.GET)
	if queryArgs != nil {
		if len(queryArgs.Marker) != 0 {
			req.SetParam("marker", queryArgs.Marker)
		}
		if queryArgs.MaxKeys != 0 {
			req.SetParam("maxKeys", strconv.Itoa(queryArgs.MaxKeys))
		}
	}
	if queryArgs == nil || queryArgs.MaxKeys == 0 {
		req.SetParam("maxKeys", "1000")
	}
	resp := &bce.BceResponse{}
	if err := cli.SendRequest(req, resp); err != nil {
		return nil, err
	}
	if resp.IsFail() {
		return nil, resp.ServiceError()
	}
	jsonBody := &ListSnapshotResult{}
	if err := resp.ParseJsonBody(jsonBody); err != nil {
		return nil, err
	}
	return jsonBody, nil
}