归档存储
更新时间:2024-04-09
归档存储
取回
bos_pool_t *p = NULL;
bos_string_t bucket;
bos_string_t object;
int is_cname = 0;
bos_table_t *resp_headers = NULL;
bos_request_options_t *options = NULL;
bos_status_t *s = NULL;
bos_pool_create(&p, NULL);
options = bos_request_options_create(p);
init_test_request_options(options, is_cname);
bos_str_set(&bucket, TEST_BUCKET_NAME);
bos_str_set(&object, "test_restore.dat");
bos_object_restore_params_t *restore_params = bos_create_object_restore_params(p);
restore_params->days = 30;
bos_str_set(&restore_params->tier, "Standard");
s = bos_post_object_restore(options, &bucket, &object, restore_params, NULL, NULL, &resp_headers);
bos_pool_destroy(p);
printf("test_object_restore ok\n");