start,shutdown,suspend,resume,delete merged into one (action)
This commit is contained in:
parent
ec69c1552f
commit
56f3647ec3
11 changed files with 15 additions and 32 deletions
2
commands/image.py
Normal file → Executable file
2
commands/image.py
Normal file → Executable file
|
|
@ -26,5 +26,5 @@ def list(public, private):
|
|||
@click.option("--image_store_name", required=True)
|
||||
def create_from_file(name, uuid, image_store_name):
|
||||
data = {"name": name, "uuid": uuid, "image_store": image_store_name}
|
||||
r = requests.post(f"{config('UCLOUD_API_SERVER')}/image/create", data)
|
||||
r = requests.post(f"{config('UCLOUD_API_SERVER')}/image/create", json=data)
|
||||
print(r.content.decode("utf-8"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue