Cloud Pak for Data Group

Expand all | Collapse all

storage service

  • 1.  storage service

    Posted Sun April 25, 2021 09:09 AM
    I uploaded a zipped file to the storage service but I can not unzip it and I can not specify its location on the storage instance ?

    ------------------------------
    Hussien Ali
    ------------------------------


  • 2.  RE: storage service

    Posted Wed April 28, 2021 03:52 PM
    Edited by Trish Smith Fri April 30, 2021 08:31 PM

    Hi Hussein,

    Are you using the Volumes API? There is an example here: https://www.ibm.com/docs/en/cloud-paks/cp-data/3.5.0?topic=resources-volumes-api

    Expand "Upload a file to a directory" and see the example:

    To extract the contents of a TAR.GZ file to the specified directory, use:

    curl -k -X PUT \
      https://<my-deployment-url>/zen-volumes/<display_name>/v1/volumes/files/<target_file_path>?extract=true \
      -H 'Authorization: Bearer <authorization-token>' \
      -H 'Content-Type: multipart/form-data' \
      -F upFile='@<fully-qualified-file-path>'

    Note: You must have Editor or Admin access to the specified volume.



    ------------------------------
    [Trish] [Smith] [MBA, BMath, Mom]
    [Content Developer]
    [IBM]
    [Ottawa] [ON]
    [613-356-5435]
    ------------------------------



  • 3.  RE: storage service

    Posted Thu April 29, 2021 07:34 AM
    Hello Smith ; 
    Thanks for your reply . Unfortunately , I can't access the link provided above. 
    A message says I am not entitled to view this page .

    ------------------------------
    Hussien Ali
    ------------------------------



  • 4.  RE: storage service

    Posted Thu April 29, 2021 07:44 AM
    Hi,

    Please see:
    https://www.ibm.com/support/producthub/icpdata/docs/content/SSQNUZ_latest/dev/volumes.html

    Upload a file to a volume

    Thanks



    ------------------------------
    TOMASZ HANUSIAK
    ------------------------------



  • 5.  RE: storage service

    Posted Thu April 29, 2021 01:51 PM

    So sorry Hussien,here's the correct link to docs: https://www.ibm.com/docs/en/cloud-paks/cp-data/3.5.0?topic=resources-volumes-api or you can  use the one that Tomasz provided as well :-)



    ------------------------------
    [Trish] [Smith] [MBA, BMath, Mom]
    [Content Developer]
    [IBM]
    [Ottawa] [ON]
    [613-356-5435]
    ------------------------------