#NEWLINE# @ click . command ( ) #NEWLINE# @ click . argument ( 'account_id' ) #NEWLINE# @ environment . pass_env #NEWLINE# def cli( env , account_id ) : #NEWLINE# #INDENT# 'List origin pull mappings.' #NEWLINE# manager = SoftLayer . CDNManager ( env . client ) #NEWLINE# origins = manager . get_origins ( origins ) #NEWLINE# table = formatting . Table ( [ 'id' , 'media_type' , 'cname' , 'origin_url' ] ) #NEWLINE# for origin in origins : #NEWLINE# #INDENT# table . add_row ( [ origin [ 'id' ] , origin [ 'mediaType' ] , origin . get ( 'cname' , formatting . blank ( ) ) , origin [ 'originUrl' ] ] ) #NEWLINE# #UNINDENT# env . fout ( table )