You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "happyalexkg (via GitHub)" <gi...@apache.org> on 2023/05/13 03:31:24 UTC

[GitHub] [cloudstack-go] happyalexkg opened a new issue, #61: Issue with ListVirtualMachines

happyalexkg opened a new issue, #61:
URL: https://github.com/apache/cloudstack-go/issues/61

   Hi, i tring to get all VMs which belongs to user with this function
   ListVirtualMachines
   
   Here is my code:
   `	con := cloudstack.InitCloudStack()
   	p3 := con.VirtualMachine.NewListVirtualMachinesParams()
   	//p3.SetAccount("testuser")
   	p3.SetListall(true)
   	ret, err := con.VirtualMachine.ListVirtualMachines(p3)
   	fmt.Println(ret)
   	if err != nil {
   		fmt.Println(err.Error())
   	}`
   After execution this code I got this error:
   `json: cannot unmarshal string into Go struct field VirtualMachine.virtualmachine.ostypeid of type int64`
   
   How to fix or can you please tell proper way to get all VMs which belongs to user
   
   Thx


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-go] happyalexkg closed issue #61: Issue with ListVirtualMachines

Posted by "happyalexkg (via GitHub)" <gi...@apache.org>.
happyalexkg closed issue #61: Issue with ListVirtualMachines
URL: https://github.com/apache/cloudstack-go/issues/61


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack-go] happyalexkg commented on issue #61: Issue with ListVirtualMachines

Posted by "happyalexkg (via GitHub)" <gi...@apache.org>.
happyalexkg commented on issue #61:
URL: https://github.com/apache/cloudstack-go/issues/61#issuecomment-1546618221

   issue was inproper version of package


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org