--- - Request: method: GET url: "https://api.backblazeb2.com/b2api/v2/b2_authorize_account" headers: authorization: - Basic hidden-account-id user-agent: - rust-b2-client/version; surf body: "" - Response: status: 200 version: ~ headers: content-type: - application/json;charset=UTF-8 cache-control: - "max-age=0, no-cache, no-store" date: - "Tue, 21 Dec 2021 16:44:26 GMT" content-length: - "1014" body: "{\"absoluteMinimumPartSize\":5000000,\"accountId\":\"hidden-account-id\",\"allowed\":{\"bucketId\":null,\"bucketName\":null,\"capabilities\":[\"shareFiles\",\"listBuckets\",\"writeFiles\",\"writeFileRetentions\",\"deleteFiles\",\"writeKeys\",\"readFiles\",\"listFiles\",\"writeBucketEncryption\",\"deleteBuckets\",\"readFileLegalHolds\",\"listAllBucketNames\",\"deleteKeys\",\"readBucketEncryption\",\"writeFileLegalHolds\",\"listKeys\",\"bypassGovernance\",\"writeBucketRetentions\",\"readBuckets\",\"readFileRetentions\",\"readBucketRetentions\",\"writeBuckets\"],\"namePrefix\":null},\"apiUrl\":\"https://api002.backblazeb2.com\",\"authorizationToken\":\"hidden-authorization-token\",\"downloadUrl\":\"https://f002.backblazeb2.com\",\"recommendedPartSize\":100000000,\"s3ApiUrl\":\"https://s3.us-west-002.backblazeb2.com\"}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_get_upload_url" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\"}" - Response: status: 200 version: ~ headers: cache-control: - "max-age=0, no-cache, no-store" content-type: - application/json;charset=UTF-8 date: - "Tue, 21 Dec 2021 16:44:26 GMT" content-length: - "275" body: "{\"authorizationToken\":\"hidden-authorization-token\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"uploadUrl\":\"https://pod-000-1129-06.backblaze.com/b2api/v2/b2_upload_file/8d625eb63be2775577c70e1a/c002_v0001129_t0017\"}" --- - Request: method: POST url: "https://pod-000-1129-06.backblaze.com/b2api/v2/b2_upload_file/8d625eb63be2775577c70e1a/c002_v0001129_t0017" headers: x-bz-file-name: - test-file-upload.txt content-type: - b2/x-auto x-bz-content-sha1: - 81fe8bfe87576c3ecb22426f8e57847382917acf authorization: - hidden-authorization-token content-length: - "4" user-agent: - rust-b2-client/version; surf body: abcd - Response: status: 200 version: ~ headers: content-length: - "746" cache-control: - "max-age=0, no-cache, no-store" date: - "Thu, 30 Dec 2021 17:15:12 GMT" content-type: - application/json;charset=UTF-8 body: "{\"accountId\":\"hidden-account-id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":4,\"contentMd5\":\"e2fc714c4727ee9395f324cd2e7f331f\",\"contentSha1\":\"81fe8bfe87576c3ecb22426f8e57847382917acf\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1187926dea44b322_d20211230_m171512_c002_v0001110_t0055\",\"fileInfo\":{},\"fileName\":\"test-file-upload.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1640884512000}" --- - Request: method: POST url: "https://f002.backblazeb2.com/b2api/v2/b2_download_file_by_id" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"fileId\":\"4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010\"}" - Response: status: 200 version: ~ headers: date: - "Wed, 12 Jan 2022 20:21:18 GMT" accept-ranges: - bytes x-bz-upload-timestamp: - "1637248690000" x-bz-file-name: - test-file.txt x-bz-file-id: - 4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010 x-bz-info-src_last_modified_millis: - "1637248673875" content-length: - "10" content-type: - text/plain x-bz-content-sha1: - 5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79 body: "Some text\n" --- - Request: method: GET url: "https://f002.backblazeb2.com/file/testing-b2-client/test-file.txt?" headers: authorization: - Basic hidden-account-id user-agent: - rust-b2-client/version; surf body: "" - Response: status: 200 version: ~ headers: content-type: - text/plain content-length: - "10" x-bz-info-src_last_modified_millis: - "1637248673875" x-bz-content-sha1: - 5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79 date: - "Wed, 12 Jan 2022 20:46:52 GMT" x-bz-file-id: - 4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010 x-bz-upload-timestamp: - "1637248690000" x-bz-file-name: - test-file.txt accept-ranges: - bytes body: "Some text\n" --- - Request: method: GET url: "https://f002.backblazeb2.com/file/testing-b2-client/test-file.txt?" headers: range: - bytes=5-8 authorization: - Basic hidden-account-id user-agent: - rust-b2-client/version; surf body: "" - Response: status: 206 version: ~ headers: x-bz-content-sha1: - 5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79 x-bz-info-src_last_modified_millis: - "1637248673875" x-bz-upload-timestamp: - "1637248690000" content-length: - "4" accept-ranges: - bytes content-range: - bytes 5-8/10 date: - "Wed, 12 Jan 2022 20:46:52 GMT" x-bz-file-id: - 4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010 x-bz-file-name: - test-file.txt content-type: - text/plain body: text --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_get_file_info" headers: authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf content-type: - application/json body: "{\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1187926dea44b322_d20211230_m171512_c002_v0001110_t0055\"}" - Response: status: 200 version: ~ headers: date: - "Tue, 01 Feb 2022 18:09:29 GMT" cache-control: - "max-age=0, no-cache, no-store" content-type: - application/json;charset=UTF-8 content-length: - "746" body: "{\"accountId\":\"hidden-account-id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":4,\"contentMd5\":\"e2fc714c4727ee9395f324cd2e7f331f\",\"contentSha1\":\"81fe8bfe87576c3ecb22426f8e57847382917acf\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1187926dea44b322_d20211230_m171512_c002_v0001110_t0055\",\"fileInfo\":{},\"fileName\":\"test-file-upload.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1640884512000}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_hide_file" headers: user-agent: - rust-b2-client/version; surf content-type: - application/json authorization: - hidden-authorization-token body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\",\"fileName\":\"test-file.txt\"}" - Response: status: 200 version: ~ headers: content-type: - application/json;charset=UTF-8 date: - "Tue, 01 Feb 2022 19:14:09 GMT" content-length: - "464" cache-control: - "max-age=0, no-cache, no-store" body: "{\"accountId\":\"hidden-account-id\",\"action\":\"hide\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":0,\"contentMd5\":\"d41d8cd98f00b204e9800998ecf8427e\",\"contentSha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"contentType\":\"application/x-bz-hide-marker\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f107f7b2843696d21_d20220201_m191409_c002_v0001094_t0020\",\"fileInfo\":{},\"fileName\":\"test-file.txt\",\"uploadTimestamp\":1643742849000}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_list_file_names" headers: authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf content-type: - application/json body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\",\"delimiter\":null,\"maxFileCount\":5,\"prefix\":null,\"startFileName\":null}" - Response: status: 200 version: ~ headers: content-type: - application/json;charset=UTF-8 content-length: - "1814" cache-control: - "max-age=0, no-cache, no-store" date: - "Thu, 03 Feb 2022 15:21:10 GMT" body: "{\"files\":[{\"accountId\":\"hidden account id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":10,\"contentMd5\":\"3c825ca59d58209eae5924221497780c\",\"contentSha1\":\"5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1052a33c70ab4806_d20211118_m153703_c002_v0001160_t0027\",\"fileInfo\":{\"src_last_modified_millis\":\"1637248673875\"},\"fileName\":\"new-file.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1637249823000},{\"accountId\":\"hidden account id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":4,\"contentMd5\":\"e2fc714c4727ee9395f324cd2e7f331f\",\"contentSha1\":\"81fe8bfe87576c3ecb22426f8e57847382917acf\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1187926dea44b322_d20211230_m171512_c002_v0001110_t0055\",\"fileInfo\":{},\"fileName\":\"test-file-upload.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1640884512000}],\"nextFileName\":null}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_list_file_versions" headers: user-agent: - rust-b2-client/version; surf authorization: - hidden-authorization-token content-type: - application/json body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\",\"delimiter\":null,\"maxFileCount\":5,\"prefix\":null,\"startFileId\":null,\"startFileName\":null}" - Response: status: 200 version: ~ headers: content-length: - "3265" content-type: - application/json;charset=UTF-8 date: - "Thu, 03 Feb 2022 20:32:18 GMT" cache-control: - "max-age=0, no-cache, no-store" body: "{\"files\":[{\"accountId\":\"hidden account id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":10,\"contentMd5\":\"3c825ca59d58209eae5924221497780c\",\"contentSha1\":\"5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1052a33c70ab4806_d20211118_m153703_c002_v0001160_t0027\",\"fileInfo\":{\"src_last_modified_millis\":\"1637248673875\"},\"fileName\":\"new-file.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1637249823000},{\"accountId\":\"hidden account id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":4,\"contentMd5\":\"e2fc714c4727ee9395f324cd2e7f331f\",\"contentSha1\":\"81fe8bfe87576c3ecb22426f8e57847382917acf\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f1187926dea44b322_d20211230_m171512_c002_v0001110_t0055\",\"fileInfo\":{},\"fileName\":\"test-file-upload.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1640884512000},{\"accountId\":\"hidden account id\",\"action\":\"hide\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":0,\"contentMd5\":\"d41d8cd98f00b204e9800998ecf8427e\",\"contentSha1\":\"da39a3ee5e6b4b0d3255bfef95601890afd80709\",\"contentType\":\"application/x-bz-hide-marker\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f107f7b2843696d21_d20220201_m191409_c002_v0001094_t0020\",\"fileInfo\":{},\"fileName\":\"test-file.txt\",\"uploadTimestamp\":1643742849000},{\"accountId\":\"hidden account id\",\"action\":\"upload\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"contentLength\":10,\"contentMd5\":\"3c825ca59d58209eae5924221497780c\",\"contentSha1\":\"5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79\",\"contentType\":\"text/plain\",\"fileId\":\"4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010\",\"fileInfo\":{\"src_last_modified_millis\":\"1637248673875\"},\"fileName\":\"test-file.txt\",\"fileRetention\":{\"isClientAuthorizedToRead\":true,\"value\":{\"mode\":null,\"retainUntilTimestamp\":null}},\"legalHold\":{\"isClientAuthorizedToRead\":true,\"value\":null},\"serverSideEncryption\":{\"algorithm\":null,\"mode\":null},\"uploadTimestamp\":1637248690000}],\"nextFileId\":null,\"nextFileName\":null}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_file_legal_hold" headers: user-agent: - rust-b2-client/version; surf authorization: - hidden-authorization-token content-type: - application/json body: "{\"fileId\":\"4_z8d625eb63be2775577c70e1a_f107f7b2843696d21_d20220201_m191409_c002_v0001094_t0020\",\"fileName\":\"test-file.txt\",\"legalHold\":\"on\"}" - Response: status: 400 version: ~ headers: connection: - close cache-control: - "max-age=0, no-cache, no-store" date: - "Sat, 05 Feb 2022 13:37:03 GMT" content-type: - application/json;charset=utf-8 content-length: - "109" body: "{\"code\":\"bucket_missing_file_lock\",\"message\":\"The bucket is not file lock enabled\",\"status\":400}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_file_legal_hold" headers: user-agent: - rust-b2-client/version; surf authorization: - hidden-authorization-token content-type: - application/json body: "{\"fileId\":\"4_zcd120e962b02c7a577e70e1a_f100e7b2902e23bf1_d20220205_m134630_c002_v0001141_t0007\",\"fileName\":\"test-file.txt\",\"legalHold\":\"on\"}" - Response: status: 200 version: ~ headers: cache-control: - "max-age=0, no-cache, no-store" content-length: - "154" content-type: - application/json;charset=UTF-8 date: - "Sat, 05 Feb 2022 13:49:24 GMT" body: "{\"fileId\":\"4_zcd120e962b02c7a577e70e1a_f100e7b2902e23bf1_d20220205_m134630_c002_v0001141_t0007\",\"fileName\":\"test-file.txt\",\"legalHold\":\"on\"}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_file_retention" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"fileId\":\"4_z8d625eb63be2775577c70e1a_f107f7b2843696d21_d20220201_m191409_c002_v0001094_t0020\",\"fileName\":\"test-file.txt\",\"fileRetention\":{\"mode\":\"governance\",\"retainUntilTimestamp\":32503680000}}" - Response: status: 400 version: ~ headers: date: - "Sat, 05 Feb 2022 15:33:46 GMT" connection: - close cache-control: - "max-age=0, no-cache, no-store" content-type: - application/json;charset=utf-8 content-length: - "109" body: "{\"code\":\"bucket_missing_file_lock\",\"message\":\"The bucket is not file lock enabled\",\"status\":400}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_file_retention" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"fileId\":\"4_zcd120e962b02c7a577e70e1a_f100e7b2902e23bf1_d20220205_m134630_c002_v0001141_t0007\",\"fileName\":\"test-file.txt\",\"fileRetention\":{\"mode\":\"governance\",\"retainUntilTimestamp\":32503680000000}}" - Response: status: 200 version: ~ headers: content-type: - application/json;charset=UTF-8 date: - "Sat, 05 Feb 2022 15:44:28 GMT" cache-control: - "max-age=0, no-cache, no-store" content-length: - "228" body: "{\"fileId\":\"4_zcd120e962b02c7a577e70e1a_f100e7b2902e23bf1_d20220205_m134630_c002_v0001141_t0007\",\"fileName\":\"test-file.txt\",\"fileRetention\":{\"mode\":\"governance\",\"retainUntilTimestamp\":32503680000000}}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_get_download_authorization" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\",\"fileNamePrefix\":\"test\",\"validDurationInSeconds\":30000}" - Response: status: 200 version: ~ headers: date: - "Sat, 05 Feb 2022 23:18:21 GMT" content-length: - "212" content-type: - application/json;charset=UTF-8 cache-control: - "max-age=0, no-cache, no-store" body: "{\"authorizationToken\":\"hidden-authorization-token\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"fileNamePrefix\":\"test\"}" --- - Request: method: GET url: "https://f002.backblazeb2.com/file/testing-b2-client/test-file.txt?" headers: user-agent: - rust-b2-client/version; surf authorization: - Basic hidden-account-id content-type: - application/json body: "{\"bucketId\":\"8d625eb63be2775577c70e1a\",\"fileNamePrefix\":\"test\",\"validDurationInSeconds\":30000}" - Response: status: 200 version: ~ headers: date: - "Sat, 05 Feb 2022 23:18:21 GMT" x-bz-content-sha1: - 5a08924b0ef1cccfb5de1d94e3d75c38dc0d3c79 x-bz-info-src_last_modified_millis: - "1637248673875" x-bz-upload-timestamp: - "1637248690000" accept-ranges: - bytes x-bz-file-name: - test-file.txt content-length: - "10" content-type: - text/plain x-bz-file-id: - 4_z8d625eb63be2775577c70e1a_f111954e3108ff3f6_d20211118_m151810_c002_v0001168_t0010 body: "Some text\n"