DevOpsAgentService / Client / get_asset
get_asset¶
- DevOpsAgentService.Client.get_asset(**kwargs)¶
Gets an asset from the specified agent space
See also: AWS API Documentation
Request Syntax
response = client.get_asset( agentSpaceId='string', assetId='string', assetVersion=123 )
- Parameters:
agentSpaceId (string) –
[REQUIRED]
The unique identifier for the agent space containing the asset
assetId (string) –
[REQUIRED]
The unique identifier of the asset to retrieve
assetVersion (integer) – The specific version of the asset to retrieve. If omitted, the latest version is returned.
- Return type:
dict
- Returns:
Response Syntax
{ 'asset': { 'assetId': 'string', 'assetType': 'string', 'metadata': {...}|[...]|123|123.4|'string'|True|None, 'version': 123, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1) } }
Response Structure
(dict) –
Response structure for getting an asset
asset (dict) –
The asset object
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
Exceptions
DevOpsAgentService.Client.exceptions.ValidationExceptionDevOpsAgentService.Client.exceptions.ContentSizeExceededExceptionDevOpsAgentService.Client.exceptions.ServiceQuotaExceededExceptionDevOpsAgentService.Client.exceptions.ConflictExceptionDevOpsAgentService.Client.exceptions.InternalServerExceptionDevOpsAgentService.Client.exceptions.AccessDeniedExceptionDevOpsAgentService.Client.exceptions.ResourceNotFoundExceptionDevOpsAgentService.Client.exceptions.ThrottlingExceptionDevOpsAgentService.Client.exceptions.InvalidParameterException