EipTp实例
更新时间:2021-11-25
创建共享流量包实例
- 创建共享流量包需要实名认证,若未通过实名认证可以前往百度智能云官网控制台中的安全认证下的实名认证中进行认证。
def create_eip_tp(eip_tp_client, reservation_length, capacity, deduct_policy, package_type):
eip_tp_client.create_eip_tp(reservation_length, capacity, deduct_policy, package_type)
查询共享流量包详情
- 查询共享流量包详情。
def get_eip_tp_detail(eip_tp_client, id):
eip_tp_client.get_eip_tp_detail(id)
查询共享流量包列表
- 可根据多重条件查询共享流量包列表。
- 若不提供查询条件,则默认查询覆盖所有共享流量包。
- 返回结果为多重条件交集的查询结果,即提供多重条件的情况下,返回同时满足所有条件的共享流量包。
- 以上查询结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定。
def list_eip_tps(eip_tp_client, id, deduct_policy, status, marker, max_keys):
eip_tp_client.list_eip_tps(id, deduct_policy, status, marker, max_keys)