Viewing List of Uploaded Files

Run the following cURL command to generate and view all the files that are uploaded using PAR URL.

Syntax

curl -k --location --request GET 'https://<hostname>/<TENANT-ID>/utils-service/v1/listfiles stripeName=default' \
--header 'locale: en-US' \
--header 'ofs_remote_user: <user id>' \
--header 'ofs_tenant_id: < TENANT-ID >' \
--header 'ofs_workspace_id: WS001' \
--header "Authorization: Bearer <TOKEN>'

Example

curl -k --location --request GET 'https://dc.pbsmcloud.us-phoenix-1.ocs.oc-test.com/aaitestdev1001-prd/utils-service/v1/listfiles?stripeName=default' \
--header 'locale: en-US' \
--header 'ofs_remote_user: cneadmin' \
--header 'ofs_tenant_id: aaitestdev1001-prd' \
--header 'ofs_workspace_id: WS001' \
--header "Authorization: Bearer ${TOKEN}"

Response


      {"payload":[{"v_file_name":"Idcs_log3.txt","n_file_id":9916,"d_upload_date":"31-JAN-23
      06:33:43 AM","v_stripe_name":"default"},{"v_file_name":"Idcs_log4.txt","n_file_id":9917,"d_upload_date":"31-JAN-23
      06:40:25 AM","v_stripe_name":"default"}],"count":2}