DevOpsAgentService / Client / get_asset_content
get_asset_content¶
- DevOpsAgentService.Client.get_asset_content(**kwargs)¶
Gets an asset’s content as a zip bundle
See also: AWS API Documentation
Request Syntax
response = client.get_asset_content( 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
assetVersion (integer) – The specific asset version to export. If omitted, the latest version is returned.
- Return type:
dict
- Returns:
Response Syntax
{ 'content': { 'zipFile': b'bytes' }, 'version': 123 }
Response Structure
(dict) –
Response structure for getting an asset’s content as a zip bundle
content (dict) –
The asset content as a zip file
zipFile (bytes) –
The zip file bytes
version (integer) –
The asset version this content belongs to
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