HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/ssm/get-parameter-history.rst
**To get a value history for a parameter**

The following ``get-parameter-history`` example lists the history of changes for the specified parameter, including its value. ::

    aws ssm get-parameter-history \
        --name "MyStringParameter"
  
Output::

    {
        "Parameters": [
            {
                "Name": "MyStringParameter",
                "Type": "String",
                "LastModifiedDate": 1582154711.976,
                "LastModifiedUser": "arn:aws:iam::111222333444:user/Mary-Major",
                "Description": "This is the first version of my String parameter",
                "Value": "Veni",
                "Version": 1,
                "Labels": [],
                "Tier": "Standard",
                "Policies": []
            },
            {
                "Name": "MyStringParameter",
                "Type": "String",
                "LastModifiedDate": 1582156093.471,
                "LastModifiedUser": "arn:aws:iam::111222333444:user/Mary-Major",
                "Description": "This is the second version of my String parameter",
                "Value": "Vidi",
                "Version": 2,
                "Labels": [],
                "Tier": "Standard",
                "Policies": []
            },
            {
                "Name": "MyStringParameter",
                "Type": "String",
                "LastModifiedDate": 1582156117.545,
                "LastModifiedUser": "arn:aws:iam::111222333444:user/Mary-Major",
                "Description": "This is the third version of my String parameter",
                "Value": "Vici",
                "Version": 3,
                "Labels": [],
                "Tier": "Standard",
                "Policies": []
            }
        ]
    }

For more information, see `Working with Parameter Versions <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-versions.html>`_ in the *AWS Systems Manager User Guide*.