python sdk for ucloud api
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
__init__.py
allocate_backend.py
allocate_eip.py
allocate_vip.py
bind_eip.py
buy_ucdn_traffic.py
config.simple.py
create_eip.py
create_policy.py
create_policy_group.py
create_security_group.py
create_ucdn_domain.py
create_uhost_instance.py
create_ulb.py
create_vserver.py
delete_eip.py
delete_security_group.py
delete_ulb.py
describe_eip.py
describe_image.py
describe_policy_group.py
describe_security_group.py
describe_security_group_resource.py
describe_share_bandwidth.py
describe_ssl.py
describe_subnet.py
describe_ucdn_domain.py
describe_uhost_instance.py
describe_ulb.py
describe_vip.py
get_balance.py
get_eip_price.py
get_metric.py
get_subnet_resource.py
get_ucdn_domain_bandwidth.py
get_ucdn_domain_traffic.py
get_ucdn_traffic.py
get_uhost_price.py
get_ulb_list.py
get_ulb_price.py
grant_security_group.py
modify_eip_weight.py
region.list
release_backend.py
release_vip.py
resize_uhost_instance.py
restart_uhost_instance.py
revoke_security_group.py
sdk.py
send_sms.py
unbind_eip.py
update_backend_attribute.py
update_policy_group.py
update_security_group.py
update_ulb_attribute.py
update_vserver_attribute.py

README

#使用方法

打开 cp config.simple.py config.py 修改以下配置


#配置公私钥 公私钥请到用户中心获取
#   public_key  = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#   private_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#   project_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" #项目ID 请从dashbord 获取
#
#
#配置api地址'''
#   有外网IP主机使用
#   base_url    = "https://api.ucloud.cn"
#

send_sms.py 使用示范

python send_sms.py "13777777777|137xxxxxxxx|138xxxxxxxx" "测试短信"

#监控脚本示范建议加入crontab 1分钟一次