DevOpsAgentService / Client / list_asset_versions
list_asset_versions¶
- DevOpsAgentService.Client.list_asset_versions(**kwargs)¶
Lists versions of an asset in the specified agent space
See also: AWS API Documentation
Request Syntax
response = client.list_asset_versions( agentSpaceId='string', assetId='string', maxResults=123, nextToken='string' )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space containing the asset
assetId (string) –
[REQUIRED]
The unique identifier of the asset whose versions to list
maxResults (integer) – The maximum number of results to return in a single response
nextToken (string) – Pagination token from a previous response to retrieve the next page of results
- Return type:
dict
- Returns:
Response Syntax
{ 'items': [ { 'version': 123, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) }, ], 'nextToken': 'string' }
Response Structure
(dict) –
Response structure for listing asset versions
items (list) –
The list of version metadata for the asset
(dict) –
Metadata for a single version of an asset, including the version number and timestamps.
version (integer) –
The version number of this asset
createdAt (datetime) –
Timestamp when this asset version was created
updatedAt (datetime) –
Timestamp when this asset version 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.ContentSizeExceededExceptionDevOpsAgentService.Client.exceptions.ServiceQuotaExceededExceptionDevOpsAgentService.Client.exceptions.InternalServerExceptionDevOpsAgentService.Client.exceptions.ResourceNotFoundExceptionDevOpsAgentService.Client.exceptions.InvalidParameterException