ent = BccClient ( bcc_sample_conf . config ) 11 12 # 预留实例券ID,最多支持100个 13 reserved_instance_ids = [ 'r-Qyycx1SX' ] 14 instance_tag1 = bcc_model
modifyChargeType HTTP/1.1 2 Host: bcc.bj.baidubce.com 3 ContentType: application/json 4 Authorization: authorization-string 返回示例 Plain Text 复制 1 HTTP/1.1 200 OK 2 x-bce-request-id: 1214cca7-4ad5-451d-9215
desc" 8 } 返回示例 Plain Text 复制 1 HTTP/1.1 200 OK 2 x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50 3 Date: Wed, 03 Dec 2014 06:42:19 GMT 4 Content-Type: application/json;charset=UTF-8 5 Server
17 asp_id = asp-osTov*** , # 自动策略的id 18 time_points = [ 1 , 2 ] , # 一天中做快照时间点,取值为0~23。 19 repeat_week_days = [ 1 , 2 ] , # 一周中做快照的时间,取值为0~6。 20 retention_days = 12 ) # 自动快照保留天数,取-1则永久保留。
磁盘专属集群 创建磁盘专属集群 以下代码可以创建磁盘专属集群: Go 复制 1 args := &CreateVolumeClusterArgs{ 2 // 创建一个磁盘磁盘专属集群,若要同时创建多个,可以修改此参数 3 PurchaseCount: 1, 4 // 集群大小,支持最小容量:85TB(87040GB),支持最大容量:1015TB(1039360GB),购买步长:10TB 5
24 RepeatWeekdays: []string{"0", "1"}, 25 // 自动快照保留天数,取-1则永久保留。
25 ReservedInstanceCount: 1, 26 ReservedInstanceTime: 365, 27 ReservedInstanceTimeUnit: "month", 28 AutoRenewTimeUnit: "month", 29 AutoRenewTime: 1, 30 AutoRenew: true, 31 Tags: []
磁盘专属集群 创建磁盘专属集群 使用以下代码可以根据实例ID批量查询实例列表: Plain Text 复制 1 def test_create_volume_cluster(self): 2 """ 3 test case for create_volume_cluster 4 """ 5 client_token = generate_client_token
centos.raw 参数说明: 1.
37 updateAspRequest . setRepeatWeekdays ( repeatWeekdays ) ; 38 // 必填,自动快照保留天数,取-1则永久保留。