如何通过REST API从Veracode成功提取数据?

时间:2019-04-19 15:41:15

标签: rest veracode

我正在尝试从veracode(json或xml)中提取数据。我尝试使用curl连接到api,但我不断收到错误消息:“无法连接到analysiscenter.veracode.com端口443:超时”。

curl --compressed -u USERNAME:PASSWORD https://analysiscenter.veracode.com/api/5.0/getapplist.do -F "include_user_info=true"

根据veracode文档,要连接到API,需要具有Reviewer或Security Lead角色。我同时具有Reviewer和Submitter角色。curl命令应返回如下数据:

  
    

xsi:schemaLocation =“ https://analysiscenter.veracode.com/schema/2.0/applist https://analysiscenter.veracode.com/resource/2.0/applist.xsd”> applist_version =“ 1.2” account_id =“ 123”>代码“ policy_updated_date =” 2013-11- 11T14:37:34-05:00“ />     create_application_profile =“ true” create_sandbox =“ true”> create_new_build =“ true” Assign_app_to_team =“ true”> assign_app_to_any_team =“ true” view_sandbox =“ true” view_results =“ true”> approve_mitigations =“ true” Submit_static_scan =“ true” />     

  

1 个答案:

答案 0 :(得分:0)

这似乎是网络问题,具体取决于您粘贴的错误。您可以ping通URL吗?

CURL还需要一些配置才能使用SSL。请参阅此答案以获取一些提示:

Configuring cURL for SSL