DevOpsAgentService / Client / list_assets

list_assets

DevOpsAgentService.Client.list_assets(**kwargs)

Lists assets in the specified agent space

See also: AWS API Documentation

Request Syntax

response = client.list_assets(
    agentSpaceId='string',
    assetType='string',
    updatedAfter=datetime(2015, 1, 1),
    updatedBefore=datetime(2015, 1, 1),
    nextToken='string',
    maxResults=123
)
Parameters:
  • agentSpaceId (string) –

    [REQUIRED]

    The unique identifier for the agent space to list assets from

  • assetType (string) – Filter results to only assets of this type

  • updatedAfter (datetime) – Filter results to only assets updated after this timestamp

  • updatedBefore (datetime) – Filter results to only assets updated before this timestamp

  • nextToken (string) – Pagination token from a previous response to retrieve the next page of results

  • maxResults (integer) – The maximum number of results to return in a single response

Return type:

dict

Returns:

Response Syntax

{
    'items': [
        {
            'assetId': 'string',
            'assetType': 'string',
            'metadata': {...}|[...]|123|123.4|'string'|True|None,
            'version': 123,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    Response structure for listing assets

    • items (list) –

      The list of assets for the agent space

      • (dict) –

        Represents an asset in an agent space, including its identifier, type, metadata, version, and timestamps.

        • assetId (string) –

          The unique identifier for this asset

        • assetType (string) –

          The type of this asset

        • metadata (document) –

          The metadata for this asset

        • version (integer) –

          The version number of this asset

        • createdAt (datetime) –

          Timestamp when this asset was created

        • updatedAt (datetime) –

          Timestamp when this asset was last updated

    • nextToken (string) –

      Pagination token to retrieve the next page of results. Absent when there are no more results.

Exceptions

  • DevOpsAgentService.Client.exceptions.ValidationException

  • DevOpsAgentService.Client.exceptions.ContentSizeExceededException

  • DevOpsAgentService.Client.exceptions.ServiceQuotaExceededException

  • DevOpsAgentService.Client.exceptions.ConflictException

  • DevOpsAgentService.Client.exceptions.InternalServerException

  • DevOpsAgentService.Client.exceptions.AccessDeniedException

  • DevOpsAgentService.Client.exceptions.ThrottlingException

  • DevOpsAgentService.Client.exceptions.InvalidParameterException

  • DevOpsAgentService.Client.exceptions.ResourceNotFoundException