func listResourceType(iidGroup IIDGroup, connectionName string) ([]string, error) {
        key := "/resource-info-spaces/" + string(iidGroup) + "/" + connectionName
        keyValueList, err := store.GetList(key, true)
        if err != nil {
                return nil, err
        }
	resourceTypeList := []string{}
        for _, kv := range keyValueList {
		resourceTypeList = append(resourceTypeList, utils.GetNodeValue(kv.Key, 4))
        }
        return resourceTypeList, nil
}
1. get key-value list
2. create IIDInfo List & return
iidGroup: iids(default) or iids:subnet or iids:sg
package iidmanager
import (
	"fmt"
	"strings"
	"github.com/cloud-barista/cb-store/utils"
	"github.com/cloud-barista/cb-store"
	"github.com/cloud-barista/cb-spider/cloud-control-manager/cloud-driver/interfaces/resources"
	icbs "github.com/cloud-barista/cb-store/interfaces"
)
var store icbs.Store
func init() {
        store = cbstore.GetStore()
}
type IIDGroup string
const (
        IIDSGROUP IIDGroup = "iids"
        SUBNETGROUP IIDGroup = "iids:subnet"
        SGGROUP IIDGroup = "iids:sg"
)
func insertInfo(iidGroup IIDGroup, connectionName string, resourceType string, iid resources.IID) error {
        key := "/resource-info-spaces/" + string(iidGroup) + "/" + connectionName + "/" + resourceType + "/" + iid.NameId
        value := iid.SystemId
        err := store.Put(key, value)
        if err != nil {
                return err
        }
        return nil
}