Get a component in a loop

Request

GET https://{hostname}:{port}
    /cli/component
Accept: {contentType}
Table 1. Header parameters
Parameter Type Required Description
Accept component/json true
Table 2. Required parameters
Parameter Type Required Description
component string true Name or ID of the component in the following format:

teamspaceName~loopName:applicationName

Example command to get a component by using component ID

curl -k -u username:passwd -X GET https://{hostname}:{port}/deploy/cli/component 
     -component "27d56999-91e1-4689-914a-e6c932a75234"

Example command to get a component by using component name in loop by ID

curl -k -u username:passwd -X GET https://{hostname}:{port}/deploy/cli/component 
     -component "6d076690-8a79-4fbc-990a-4852fb857d25:componentName"
Note: When using loop ID, you do not need to specify the teamspace name or ID. If you do, make sure that the teamspace name or ID is valid.

Example command to get a component by using component name in loop by name in teamspace by ID

curl -k -u username:passwd -X GET https://{hostname}:{port}/deploy/cli/component 
     -component "6d076690-8a79-4fbc-990a-4852fb857d25~loopName:componentName"

Example command to get a component by using component name in loop by name in teamspace by name

curl -k -u username:passwd -X GET https://{hostname}:{port}/deploy/cli/component 
     -component "teamspaceName~loopName:componentName"

Example response

[
    {
        "id": "1967ea55-d829-fb58-d2d9-f5cc351c50a9",
        "securityResourceId": "1967ea55-d7e1-7303-7ae7-7fc579cd6d0f",
        "loop": {
            "id": "1234bdb3-90a1-414d-88b3-1ff19e822ded",
            "name": "sampleLoop3",
            "teamSpace": {
                "id": "d0ff4b8a-ab83-4cca-9c81-78daab66db27",
                "name": "samplets3"
            }
        },
        "name": "My Component",
        "description": "New component for command example",
        "created": 1745881488769,
        "componentType": "STANDARD",
        "ignoreQualifiers": 0,
        "importAutomatically": false,
        "useVfs": true,
        "active": true,
        "integrationFailed": false,
        "deleted": false,
        "defaultVersionType": "FULL",
        "cleanupDaysToKeep": 0,
        "cleanupCountToKeep": 0,
        "tags": [],
        "user": "demo user (admin@admin.com)"
    }
]