{"service":"HALOWERK finopswerk","endpoint":"/v1/archive-restore-copy-clock-ledger","method":"POST","content_type":"application/json","inputSchema":{"type":"object","properties":{"size_bytes":{"type":"integer","minimum":1,"maximum":1000000},"horizon":{"type":"integer","minimum":1,"maximum":240},"archive_expiry_domain":{"type":"array","items":{"type":"integer","minimum":1,"maximum":240},"minItems":1,"maxItems":2},"events":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"integer","minimum":1,"maximum":239},"kind":{"enum":["request","complete"]},"days":{"type":"integer","minimum":0,"maximum":10}},"required":["hour","kind","days"],"additionalProperties":false},"minItems":1,"maxItems":8},"report":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"status":{"anyOf":[{"enum":[0,200,202,409]},{"type":"null"}]},"state":{"anyOf":[{"enum":["archived","pending","ready","gone"]},{"type":"null"}]},"copy_expiry_hour":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"archive_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"restored_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"new_restore_jobs":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"period_updates":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]}},"required":["status","state","copy_expiry_hour","archive_byte_hours","restored_byte_hours","new_restore_jobs","period_updates"],"additionalProperties":false},"minItems":1,"maxItems":8},"final":{"type":"object","properties":{"state":{"anyOf":[{"enum":["archived","pending","ready","gone"]},{"type":"null"}]},"copy_expiry_hour":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"archive_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"restored_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"new_restore_jobs":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"period_updates":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]}},"required":["state","copy_expiry_hour","archive_byte_hours","restored_byte_hours","new_restore_jobs","period_updates"],"additionalProperties":false}},"required":["events","final"],"additionalProperties":false}},"required":["size_bytes","horizon","archive_expiry_domain","events","report"],"additionalProperties":false},"requestExample":{"size_bytes":100,"horizon":144,"archive_expiry_domain":[72],"events":[{"hour":1,"kind":"request","days":1},{"hour":3,"kind":"request","days":9},{"hour":5,"kind":"complete","days":0}],"report":{"events":[{"status":202,"state":"pending","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":100,"restored_byte_hours":0},{"status":409,"state":"pending","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":300,"restored_byte_hours":0},{"status":0,"state":"ready","copy_expiry_hour":48,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":500,"restored_byte_hours":0}],"final":{"state":"gone","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":7200,"restored_byte_hours":4300}}},"operations":[{"method":"POST","inputSchema":{"type":"object","properties":{"size_bytes":{"type":"integer","minimum":1,"maximum":1000000},"horizon":{"type":"integer","minimum":1,"maximum":240},"archive_expiry_domain":{"type":"array","items":{"type":"integer","minimum":1,"maximum":240},"minItems":1,"maxItems":2},"events":{"type":"array","items":{"type":"object","properties":{"hour":{"type":"integer","minimum":1,"maximum":239},"kind":{"enum":["request","complete"]},"days":{"type":"integer","minimum":0,"maximum":10}},"required":["hour","kind","days"],"additionalProperties":false},"minItems":1,"maxItems":8},"report":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"status":{"anyOf":[{"enum":[0,200,202,409]},{"type":"null"}]},"state":{"anyOf":[{"enum":["archived","pending","ready","gone"]},{"type":"null"}]},"copy_expiry_hour":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"archive_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"restored_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"new_restore_jobs":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"period_updates":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]}},"required":["status","state","copy_expiry_hour","archive_byte_hours","restored_byte_hours","new_restore_jobs","period_updates"],"additionalProperties":false},"minItems":1,"maxItems":8},"final":{"type":"object","properties":{"state":{"anyOf":[{"enum":["archived","pending","ready","gone"]},{"type":"null"}]},"copy_expiry_hour":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"archive_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"restored_byte_hours":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"new_restore_jobs":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]},"period_updates":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000},{"type":"null"}]}},"required":["state","copy_expiry_hour","archive_byte_hours","restored_byte_hours","new_restore_jobs","period_updates"],"additionalProperties":false}},"required":["events","final"],"additionalProperties":false}},"required":["size_bytes","horizon","archive_expiry_domain","events","report"],"additionalProperties":false},"requestExample":{"size_bytes":100,"horizon":144,"archive_expiry_domain":[72],"events":[{"hour":1,"kind":"request","days":1},{"hour":3,"kind":"request","days":9},{"hour":5,"kind":"complete","days":0}],"report":{"events":[{"status":202,"state":"pending","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":100,"restored_byte_hours":0},{"status":409,"state":"pending","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":300,"restored_byte_hours":0},{"status":0,"state":"ready","copy_expiry_hour":48,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":500,"restored_byte_hours":0}],"final":{"state":"gone","copy_expiry_hour":0,"new_restore_jobs":1,"period_updates":0,"archive_byte_hours":7200,"restored_byte_hours":4300}}}}]}