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.ValidationException

  • DevOpsAgentService.Client.exceptions.ContentSizeExceededException

  • DevOpsAgentService.Client.exceptions.ServiceQuotaExceededException

  • DevOpsAgentService.Client.exceptions.ConflictException

  • DevOpsAgentService.Client.exceptions.InternalServerException

  • DevOpsAgentService.Client.exceptions.AccessDeniedException

  • DevOpsAgentService.Client.exceptions.ResourceNotFoundException

  • DevOpsAgentService.Client.exceptions.ThrottlingException

  • DevOpsAgentService.Client.exceptions.InvalidParameterException