Go to file
PCoder 1fbb5974f2 Change url of the request 2019-09-14 13:23:42 +05:30
commands Change url of the request 2019-09-14 13:23:42 +05:30
.gitignore break vm_action into vm.start() and vm.stop() and image.list() -> image._list() 2019-09-01 22:09:08 +05:00
Pipfile start,shutdown,suspend,resume,delete merged into one (action) 2019-08-01 15:05:38 +05:00
Pipfile.lock start,shutdown,suspend,resume,delete merged into one (action) 2019-08-01 15:05:38 +05:00
README.md Update README.md 2019-09-13 11:10:22 +05:30
ucloud.py Add product command 2019-09-13 10:58:05 +05:30

README.md

ucloud-cli

Listing available ucloud products

(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product list
{
    "/v1/products/": {
        "description": "YEARLY IPV6 subscription",
        "name": "IPV6 VPN",
        "price": 12000,
        "recurring_duration": 31536000,
        "recurring_duration_units": 0,
        "type": "recurring"
    }
}

Adding new products

(ucloud-cli) [test@ungleich ucloud-cli]$ UCLOUD_PAY_SERVER=http://127.0.0.1:5000 python ucloud.py product add \
--name mravi \
--realm test \
--seed stest \
--product-name "IPV6 VPN" \
--product-description="YEARLY IPV6 subscription" \
--product-type=recurring \
--product-recurring-duration=31536000 \
--product-price=12000