https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/awscli/examples/ecs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/awscli/examples/ecs/list-task-definitions.rst
**Example 1: To list the registered task definitions**

The following ``list-task-definitions`` example lists all of the registered task definitions. ::

    aws ecs list-task-definitions

Output::

    {
        "taskDefinitionArns": [
            "arn:aws:ecs:us-west-2:123456789012:task-definition/sleep300:2",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/sleep360:1",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:3",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:4",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:5",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:6"
        ]
    }

**Example 2: To list the registered task definitions in a family**

The following `list-task-definitions` example lists the task definition revisions of a specified family. ::

    aws ecs list-task-definitions --family-prefix wordpress

Output::

    {
        "taskDefinitionArns": [
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:3",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:4",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:5",
            "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:6"
        ]
    }

For more information, see `Amazon ECS Task Definitions <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html>`_ in the *Amazon ECS Developer Guide*.

https://t.me/RX1948 - 2025