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: //lib/python3.6/site-packages/awscli/examples/deploy/get-on-premises-instance.rst
**To get information about an on-premises instance**

The following ``get-on-premises-instance`` example retrieves information about the specified on-premises instance. ::

    aws deploy get-on-premises-instance --instance-name AssetTag12010298EX

Output::

    {
        "instanceInfo": {
        "iamUserArn": "arn:aws:iam::123456789012:user/AWS/CodeDeploy/AssetTag12010298EX",
            "tags": [
            {
                "Value": "CodeDeployDemo-OnPrem",
                "Key": "Name"
            }
            ],
            "instanceName": "AssetTag12010298EX",
            "registerTime": 1425579465.228,
            "instanceArn": "arn:aws:codedeploy:us-east-1:123456789012:instance/AssetTag12010298EX_4IwLNI2Alh"
        }
    }