Units API.

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

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

{
    "translation": "https://translate.fedoraproject.org/api/translations/fedora-docs-l10n-fedora-coreos/masterpagesprovisioning-aws/zh_CN/?format=api",
    "source": [
        "NAME='instance1'\nSSHKEY='my-key'          # the name of your SSH key: `aws ec2 describe-key-pairs`\nIMAGE='ami-xxx'          # the AMI ID found on the download page\nDISK='20'                # the size of the hard disk\nREGION='us-east-1'       # the target region\nTYPE='m5.large'          # the instance type\nSUBNET='subnet-xxx'      # the subnet: `aws ec2 describe-subnets`\nSECURITY_GROUPS='sg-xxx' # the security group `aws ec2 describe-security-groups`\nUSERDATA='/path/to/config.ign' # path to your Ignition config\nPROFILE='xxx-profile'    # the name of an IAM instance profile `aws iam list-instance-profiles`\naws ec2 run-instances                     \\\n    --region $REGION                      \\\n    --image-id $IMAGE                     \\\n    --instance-type $TYPE                 \\\n    --key-name $SSHKEY                    \\\n    --subnet-id $SUBNET                   \\\n    --security-group-ids $SECURITY_GROUPS \\\n    --user-data \"file://${USERDATA}\"      \\\n    --iam-instance-profile Name=${PROFILE}     \\\n    --tag-specifications \"ResourceType=instance,Tags=[{Key=Name,Value=${NAME}}]\" \\\n    --block-device-mappings \"VirtualName=/dev/xvda,DeviceName=/dev/xvda,Ebs={VolumeSize=${DISK}}\"\n"
    ],
    "previous_source": "",
    "target": [
        ""
    ],
    "id_hash": -4303363166018247963,
    "content_hash": -4303363166018247963,
    "location": "pages/provisioning-aws.adoc:168",
    "context": "",
    "note": "type: delimited block -",
    "flags": "no-wrap",
    "labels": [],
    "state": 0,
    "fuzzy": false,
    "translated": false,
    "approved": false,
    "position": 43,
    "has_suggestion": false,
    "has_comment": false,
    "has_failing_check": false,
    "num_words": 107,
    "source_unit": "https://translate.fedoraproject.org/api/units/18581257/?format=api",
    "priority": 100,
    "id": 18581383,
    "web_url": "https://translate.fedoraproject.org/translate/fedora-docs-l10n-fedora-coreos/masterpagesprovisioning-aws/zh_CN/?checksum=444762002dfb62e5",
    "url": "https://translate.fedoraproject.org/api/units/18581383/?format=api",
    "explanation": "",
    "extra_flags": "",
    "pending": false,
    "timestamp": "2024-11-15T22:28:57.678989Z",
    "last_updated": "2024-11-15T22:28:57.679005Z"
}