-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
How I can run api client.Server.List with ServerListOptions? #155
Comments
To use the Server.List method with ServerListOptions in the github.com/bizflycloud/gobizfly package, you first need to import the package into your project: import ( Then, you can create a new Client instance and configure your ServerListOptions: client := gobizfly.NewClient(nil) opts := &gobizfly.ServerListOptions{ Finally, you can call the Server.List method to retrieve a list of servers from the Bizfly Cloud API: servers, err := client.Servers.List(context.Background(), opts) // use servers for whatever you need to do |
Why do you pass unsupported fields into the ServerListOptions struct ? It does not support Tags, Size, Page field at this moment. |
I think you can see this code here to have an example: https://github.com/bizflycloud/bizflyctl/blob/master/cmd/server.go#L134 |
But I need |
The struct ServerListOptions parameters are set to be private, please public them or provide function to create ServerListOptions in detail.
Thanks
Hung Pham
The text was updated successfully, but these errors were encountered: