Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

how query volume through metadata #634

Open
simpleshuai opened this issue Aug 30, 2017 · 0 comments
Open

how query volume through metadata #634

simpleshuai opened this issue Aug 30, 2017 · 0 comments

Comments

@simpleshuai
Copy link

code:

	vmeta := map[string]string{ <br>
		"pod_id": "68d32002-8d53-11e7-8780-48df370580b8",
	}
	listOpts := volumes.ListOpts{AllTenants: true, Metadata: vmeta}
	query, err := listOpts.ToVolumeListQuery()
	if err != nil {
		panic(err)
	}
	fmt.Println(query)

go run got:

?all_tenants=true

why missing metadata? how to query volume with metadata

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant