We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The list storages method seems to don't filter storages by type.
GetStorages should read the storage type of the request and append the storage type to the URL used to get storages.
GetStorages
upcloud-go-api/upcloud/service/storage.go
Line 41 in af59376
https://developers.upcloud.com/1.3/9-storages/#list-storages
I don't mind to open a PR if nobody is working on this.
The text was updated successfully, but these errors were encountered:
Hi @fabioDMFerreira ,
You can filter storages by type using Type field in request.GetStoragesRequest . For example list only templates:
Type
request.GetStoragesRequest
service.GetStorages(&request.GetStoragesRequest{ Type: upcloud.StorageTypeTemplate, })
You can use that with Access field to get your private templates:
Access
service.GetStorages(&request.GetStoragesRequest{ Type: upcloud.StorageTypeTemplate, Access: upcloud.StorageAccessPrivate, })
Sorry, something went wrong.
No branches or pull requests
The list storages method seems to don't filter storages by type.
GetStorages
should read the storage type of the request and append the storage type to the URL used to get storages.upcloud-go-api/upcloud/service/storage.go
Line 41 in af59376
https://developers.upcloud.com/1.3/9-storages/#list-storages
I don't mind to open a PR if nobody is working on this.
The text was updated successfully, but these errors were encountered: