--- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_create_bucket" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketName\":\"testing-new-b2-client\",\"bucketType\":\"allPrivate\",\"fileLockEnabled\":false,\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}]}" - Response: status: 200 version: ~ headers: cache-control: - "max-age=0, no-cache, no-store" date: - "Mon, 08 Nov 2021 13:04:58 GMT" content-length: - "736" content-type: - application/json;charset=UTF-8 body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"1df2dee6ab62f7f577c70e1a\",\"bucketInfo\":{},\"bucketName\":\"testing-new-b2-client\",\"bucketType\":\"allPrivate\",\"corsRules\":[],\"defaultServerSideEncryption\":{\"isClientAuthorizedToRead\":true,\"value\":{\"algorithm\":null,\"mode\":null}},\"fileLockConfiguration\":{\"isClientAuthorizedToRead\":true,\"value\":{\"defaultRetention\":{\"mode\":null,\"period\":null},\"isFileLockEnabled\":false}},\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}],\"options\":[\"s3\"],\"revision\":2}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_create_bucket" headers: authorization: - hidden-authorization-token content-type: - application/json user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketName\":\"testing-b2-client\",\"bucketType\":\"allPrivate\",\"fileLockEnabled\":false,\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}]}" - Response: status: 400 version: ~ headers: content-type: - application/json;charset=utf-8 cache-control: - "max-age=0, no-cache, no-store" connection: - close content-length: - "101" date: - "Mon, 08 Nov 2021 13:08:47 GMT" body: "{\"code\":\"duplicate_bucket_name\",\"message\":\"Bucket name is already in use.\",\"status\":400}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_delete_bucket" headers: authorization: - hidden-authorization-token content-type: - application/json user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"1df2dee6ab62f7f577c70e1a\"}" - Response: status: 200 version: ~ headers: content-length: - "736" content-type: - application/json;charset=UTF-8 date: - "Mon, 08 Nov 2021 13:17:59 GMT" cache-control: - "max-age=0, no-cache, no-store" body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"1df2dee6ab62f7f577c70e1a\",\"bucketInfo\":{},\"bucketName\":\"testing-new-b2-client\",\"bucketType\":\"allPrivate\",\"corsRules\":[],\"defaultServerSideEncryption\":{\"isClientAuthorizedToRead\":true,\"value\":{\"algorithm\":null,\"mode\":null}},\"fileLockConfiguration\":{\"isClientAuthorizedToRead\":true,\"value\":{\"defaultRetention\":{\"mode\":null,\"period\":null},\"isFileLockEnabled\":false}},\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}],\"options\":[\"s3\"],\"revision\":3}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_delete_bucket" headers: authorization: - hidden-authorization-token content-type: - application/json user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"1234567\"}" - Response: status: 400 version: ~ headers: date: - "Mon, 08 Nov 2021 13:14:45 GMT" connection: - close content-type: - application/json;charset=utf-8 cache-control: - "max-age=0, no-cache, no-store" content-length: - "109" body: "{\"code\":\"bad_bucket_id\",\"message\":\"Bucket 1234567 does not exist\",\"status\":400}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_list_buckets" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketName\":\"testing-b2-client\"}" - Response: status: 200 version: ~ headers: cache-control: - "max-age=0, no-cache, no-store" content-type: - application/json;charset=UTF-8 content-length: - "746" date: - "Thu, 11 Nov 2021 13:41:46 GMT" body: "{\"buckets\":[{\"accountId\":\"hidden-account-id\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"bucketInfo\":{},\"bucketName\":\"testing-b2-client\",\"bucketType\":\"allPrivate\",\"corsRules\":[],\"defaultServerSideEncryption\":{\"isClientAuthorizedToRead\":true,\"value\":{\"algorithm\":null,\"mode\":null}},\"fileLockConfiguration\":{\"isClientAuthorizedToRead\":true,\"value\":{\"defaultRetention\":{\"mode\":null,\"period\":null},\"isFileLockEnabled\":false}},\"lifecycleRules\":[],\"options\":[\"s3\"],\"revision\":2}]}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_bucket" headers: authorization: - hidden-authorization-token content-type: - application/json user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"bucketType\":\"allPrivate\",\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}]}" - Response: status: 200 version: ~ headers: date: - "Fri, 12 Nov 2021 00:45:59 GMT" cache-control: - "max-age=0, no-cache, no-store" content-type: - application/json;charset=UTF-8 content-length: - "732" body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"bucketInfo\":{},\"bucketName\":\"testing-b2-client\",\"bucketType\":\"allPrivate\",\"corsRules\":[],\"defaultServerSideEncryption\":{\"isClientAuthorizedToRead\":true,\"value\":{\"algorithm\":null,\"mode\":null}},\"fileLockConfiguration\":{\"isClientAuthorizedToRead\":true,\"value\":{\"defaultRetention\":{\"mode\":null,\"period\":null},\"isFileLockEnabled\":false}},\"lifecycleRules\":[{\"daysFromHidingToDeleting\":5,\"daysFromUploadingToHiding\":null,\"fileNamePrefix\":\"my-files/\"}],\"options\":[\"s3\"],\"revision\":3}" --- - Request: method: POST url: "https://api002.backblazeb2.com/b2api/v2/b2_update_bucket" headers: content-type: - application/json authorization: - hidden-authorization-token user-agent: - rust-b2-client/version; surf body: "{\"accountId\":\"hidden-account-id\",\"bucketId\":\"8d625eb63be2775577c70e1a\",\"bucketType\":\"allPrivate\",\"ifRevisionIs\":10}" - Response: status: 409 version: ~ headers: content-length: - "88" content-type: - application/json;charset=utf-8 date: - "Fri, 12 Nov 2021 00:53:31 GMT" cache-control: - "max-age=0, no-cache, no-store" body: "{\"code\":\"conflict\",\"message\":\"simultaneous updates to bucket\",\"status\":409}"