Units API.

See the Weblate's Web API documentation for detailed description of the API.

GET /api/units/82739128/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "translation": "https://hosted.weblate.org/api/translations/debian-handbook/14_security/nl/?format=api",
    "source": [
        "<computeroutput># </computeroutput><userinput>iptables-save &gt; iptables-ruleset.txt\n</userinput><computeroutput># </computeroutput><userinput>iptables-restore-translate -f iptables-ruleset.txt\n</userinput><computeroutput>\n# Translated by iptables-restore-translate v1.8.7 on Wed Mar 16 22:06:32 2022\nadd table ip filter\nadd chain ip filter INPUT { type filter hook input priority 0; policy accept; }\nadd chain ip filter FORWARD { type filter hook forward priority 0; policy drop; }\nadd chain ip filter OUTPUT { type filter hook output priority 0; policy accept; }\nadd chain ip filter DOCKER\nadd chain ip filter DOCKER-ISOLATION-STAGE-1\nadd chain ip filter DOCKER-ISOLATION-STAGE-2\nadd chain ip filter DOCKER-USER\nadd rule ip filter FORWARD counter jump DOCKER-USER\nadd rule ip filter FORWARD counter jump DOCKER-ISOLATION-STAGE-1\nadd rule ip filter FORWARD oifname \"docker0\" ct state related,established counter accept\nadd rule ip filter FORWARD oifname \"docker0\" counter jump DOCKER\nadd rule ip filter FORWARD iifname \"docker0\" oifname != \"docker0\" counter accept\nadd rule ip filter FORWARD iifname \"docker0\" oifname \"docker0\" counter accept\nadd rule ip filter DOCKER-ISOLATION-STAGE-1 iifname \"docker0\" oifname != \"docker0\" counter jump DOCKER-ISOLATION-STAGE-2\nadd rule ip filter DOCKER-ISOLATION-STAGE-1 counter return\nadd rule ip filter DOCKER-ISOLATION-STAGE-2 oifname \"docker0\" counter drop\nadd rule ip filter DOCKER-ISOLATION-STAGE-2 counter return\nadd rule ip filter DOCKER-USER counter return\nadd table ip nat\nadd chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }\nadd chain ip nat INPUT { type nat hook input priority 100; policy accept; }\nadd chain ip nat OUTPUT { type nat hook output priority -100; policy accept; }\nadd chain ip nat POSTROUTING { type nat hook postrouting priority 100; policy accept; }\nadd chain ip nat DOCKER\nadd rule ip nat PREROUTING fib daddr type local counter jump DOCKER\nadd rule ip nat OUTPUT ip daddr != 127.0.0.0/8 fib daddr type local counter jump DOCKER\nadd rule ip nat POSTROUTING oifname != \"docker0\" ip saddr 172.17.0.0/16 counter masquerade\nadd rule ip nat DOCKER iifname \"docker0\" counter return\n# Completed on Wed Mar 16 22:06:32 2022\n# </computeroutput><userinput>iptables-restore-translate -f iptables-ruleset.txt &gt; ruleset.nft\n</userinput><computeroutput># </computeroutput><userinput>nft -f ruleset.nft\n</userinput><computeroutput># </computeroutput><userinput>nft list ruleset</userinput><computeroutput>\ntable inet filter {\n\tchain input {\n\t\ttype filter hook input priority filter; policy accept;\n\t}\n\n\tchain forward {\n\t\ttype filter hook forward priority filter; policy accept;\n\t}\n\n\tchain output {\n\t\ttype filter hook output priority filter; policy accept;\n\t}\n}\ntable ip nat {\n\tchain DOCKER {\n\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n\t}\n\n\tchain POSTROUTING {\n\t\ttype nat hook postrouting priority srcnat; policy accept;\n\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n\t}\n\n\tchain PREROUTING {\n\t\ttype nat hook prerouting priority dstnat; policy accept;\n\t\tfib daddr type local counter packets 1 bytes 60 jump DOCKER\n\t\tfib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t}\n\n\tchain OUTPUT {\n\t\ttype nat hook output priority -100; policy accept;\n\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t}\n\n\tchain INPUT {\n\t\ttype nat hook input priority 100; policy accept;\n\t}\n}\ntable ip filter {\n\tchain DOCKER {\n\t}\n\n\tchain DOCKER-ISOLATION-STAGE-1 {\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n\t\tcounter packets 0 bytes 0 return\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain DOCKER-ISOLATION-STAGE-2 {\n\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n\t\tcounter packets 0 bytes 0 return\n\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain FORWARD {\n\t\ttype filter hook forward priority filter; policy drop;\n\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n\t\toifname \"docker0\" ct state related,established counter packets 0 bytes 0 accept\n\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n\t\toifname \"docker0\" ct state established,related counter packets 0 bytes 0 accept\n\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n\t}\n\n\tchain DOCKER-USER {\n\t\tcounter packets 0 bytes 0 return\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain INPUT {\n\t\ttype filter hook input priority filter; policy accept;\n\t}\n\n\tchain OUTPUT {\n\t\ttype filter hook output priority filter; policy accept;\n\t}\n}\n</computeroutput>"
    ],
    "previous_source": "",
    "target": [
        "<computeroutput># </computeroutput><userinput>iptables-save &gt; iptables-ruleset.txt\n</userinput><computeroutput># </computeroutput><userinput>iptables-restore-translate -f iptables-ruleset.txt\n</userinput><computeroutput>\n# Translated by iptables-restore-translate v1.8.7 on Wed Mar 16 22:06:32 2022\nadd table ip filter\nadd chain ip filter INPUT { type filter hook input priority 0; policy accept; }\nadd chain ip filter FORWARD { type filter hook forward priority 0; policy drop; }\nadd chain ip filter OUTPUT { type filter hook output priority 0; policy accept; }\nadd chain ip filter DOCKER\nadd chain ip filter DOCKER-ISOLATION-STAGE-1\nadd chain ip filter DOCKER-ISOLATION-STAGE-2\nadd chain ip filter DOCKER-USER\nadd rule ip filter FORWARD counter jump DOCKER-USER\nadd rule ip filter FORWARD counter jump DOCKER-ISOLATION-STAGE-1\nadd rule ip filter FORWARD oifname \"docker0\" ct state related,established counter accept\nadd rule ip filter FORWARD oifname \"docker0\" counter jump DOCKER\nadd rule ip filter FORWARD iifname \"docker0\" oifname != \"docker0\" counter accept\nadd rule ip filter FORWARD iifname \"docker0\" oifname \"docker0\" counter accept\nadd rule ip filter DOCKER-ISOLATION-STAGE-1 iifname \"docker0\" oifname != \"docker0\" counter jump DOCKER-ISOLATION-STAGE-2\nadd rule ip filter DOCKER-ISOLATION-STAGE-1 counter return\nadd rule ip filter DOCKER-ISOLATION-STAGE-2 oifname \"docker0\" counter drop\nadd rule ip filter DOCKER-ISOLATION-STAGE-2 counter return\nadd rule ip filter DOCKER-USER counter return\nadd table ip nat\nadd chain ip nat PREROUTING { type nat hook prerouting priority -100; policy accept; }\nadd chain ip nat INPUT { type nat hook input priority 100; policy accept; }\nadd chain ip nat OUTPUT { type nat hook output priority -100; policy accept; }\nadd chain ip nat POSTROUTING { type nat hook postrouting priority 100; policy accept; }\nadd chain ip nat DOCKER\nadd rule ip nat PREROUTING fib daddr type local counter jump DOCKER\nadd rule ip nat OUTPUT ip daddr != 127.0.0.0/8 fib daddr type local counter jump DOCKER\nadd rule ip nat POSTROUTING oifname != \"docker0\" ip saddr 172.17.0.0/16 counter masquerade\nadd rule ip nat DOCKER iifname \"docker0\" counter return\n# Completed on Wed Mar 16 22:06:32 2022\n# </computeroutput><userinput>iptables-restore-translate -f iptables-ruleset.txt &gt; ruleset.nft\n</userinput><computeroutput># </computeroutput><userinput>nft -f ruleset.nft\n</userinput><computeroutput># </computeroutput><userinput>nft list ruleset</userinput><computeroutput>\ntable inet filter {\n\tchain input {\n\t\ttype filter hook input priority filter; policy accept;\n\t}\n\n\tchain forward {\n\t\ttype filter hook forward priority filter; policy accept;\n\t}\n\n\tchain output {\n\t\ttype filter hook output priority filter; policy accept;\n\t}\n}\ntable ip nat {\n\tchain DOCKER {\n\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n\t\tiifname \"docker0\" counter packets 0 bytes 0 return\n\t}\n\n\tchain POSTROUTING {\n\t\ttype nat hook postrouting priority srcnat; policy accept;\n\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n\t\toifname != \"docker0\" ip saddr 172.17.0.0/16 counter packets 0 bytes 0 masquerade\n\t}\n\n\tchain PREROUTING {\n\t\ttype nat hook prerouting priority dstnat; policy accept;\n\t\tfib daddr type local counter packets 1 bytes 60 jump DOCKER\n\t\tfib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t}\n\n\tchain OUTPUT {\n\t\ttype nat hook output priority -100; policy accept;\n\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t\tip daddr != 127.0.0.0/8 fib daddr type local counter packets 0 bytes 0 jump DOCKER\n\t}\n\n\tchain INPUT {\n\t\ttype nat hook input priority 100; policy accept;\n\t}\n}\ntable ip filter {\n\tchain DOCKER {\n\t}\n\n\tchain DOCKER-ISOLATION-STAGE-1 {\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n\t\tcounter packets 0 bytes 0 return\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-2\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain DOCKER-ISOLATION-STAGE-2 {\n\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n\t\tcounter packets 0 bytes 0 return\n\t\toifname \"docker0\" counter packets 0 bytes 0 drop\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain FORWARD {\n\t\ttype filter hook forward priority filter; policy drop;\n\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n\t\toifname \"docker0\" ct state related,established counter packets 0 bytes 0 accept\n\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n\t\tcounter packets 0 bytes 0 jump DOCKER-USER\n\t\tcounter packets 0 bytes 0 jump DOCKER-ISOLATION-STAGE-1\n\t\toifname \"docker0\" ct state established,related counter packets 0 bytes 0 accept\n\t\toifname \"docker0\" counter packets 0 bytes 0 jump DOCKER\n\t\tiifname \"docker0\" oifname != \"docker0\" counter packets 0 bytes 0 accept\n\t\tiifname \"docker0\" oifname \"docker0\" counter packets 0 bytes 0 accept\n\t}\n\n\tchain DOCKER-USER {\n\t\tcounter packets 0 bytes 0 return\n\t\tcounter packets 0 bytes 0 return\n\t}\n\n\tchain INPUT {\n\t\ttype filter hook input priority filter; policy accept;\n\t}\n\n\tchain OUTPUT {\n\t\ttype filter hook output priority filter; policy accept;\n\t}\n}\n</computeroutput>"
    ],
    "id_hash": -2594707256014946291,
    "content_hash": -2594707256014946291,
    "location": "",
    "context": "",
    "note": "",
    "flags": "",
    "labels": [],
    "state": 20,
    "fuzzy": false,
    "translated": true,
    "approved": false,
    "position": 90,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 768,
    "source_unit": "https://hosted.weblate.org/api/units/82736292/?format=api",
    "priority": 100,
    "id": 82739128,
    "web_url": "https://hosted.weblate.org/translate/debian-handbook/14_security/nl/?checksum=5bfdbf7f7d19c00d",
    "url": "https://hosted.weblate.org/api/units/82739128/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2022-09-07T09:57:47.308308+02:00"
}