yunify / qingcloud-sdk-python

QingCloud SDK for Python
Apache License 2.0
54 stars 48 forks source link

describe_images function problem #57

Closed LGTH closed 5 years ago

LGTH commented 5 years ago

When I use desacribe_image fucntion to show all images info, use as below: ret = conn.desacribe_image() print (ret)

then the console show below:

{'total_count': 0, 'action': 'DescribeImagesResponse', 'ret_code': 0, 'image_set': []}

My Problem is how to get images info when i want to create a host. I hope someone can answer me, thank you!

Sunight commented 5 years ago

Hi, please specify provider with system like:

describe_images(... provider="system" ,...)

This API return images that created by yourself if not specify provider.

LGTH commented 5 years ago

Hi, please specify provider with system like:

describe_images(... provider="system" ,...)

This API return images that created by yourself if not specify provider.

Yes, It works, Maybe I should seriously read the sdk code, I can find it in the annotation. Thank you!

Sunight commented 5 years ago

We'll complete our docs.