IBM / aspera-cli

IBM Aspera CLI
Apache License 2.0
73 stars 17 forks source link

Feature Request - Rename Package #36

Closed cjplay02 closed 2 years ago

cjplay02 commented 3 years ago

AoC API - https://developer.ibm.com/apis/catalog/aspera--aspera-on-cloud-api/api/API--aspera--aspera-on-cloud-api#update_package

Can we get the CLI executable to have update package so we can rename it? We forward packages that come in rather than move them to save time, but the input name may not be contextually relevant to the second recipient. Therefore, we need a way to rename the package before changing the recipients and forwarding.

laurent-martin commented 3 years ago

the command: ascli aoc admin resource package has the sub command modify Basically it calls the PUT command on admin/packages/:id: with admin:all bearer token

(fixed amdin -> admin)

cjplay02 commented 3 years ago

Please confirm “amdin” is really “admin”? If this works, then thank you very much!

Thank you, Chris.Henderson@warnerbros.commailto:Chris.Henderson@warnerbros.com WAMO - Cell: 714-520-1905; Desk: 818-977-4320 Bldg 168/Pinnacle II, Rm 5319

From: laurent-martin notifications@github.com Reply-To: IBM/aspera-cli reply@reply.github.com Date: Monday, March 8, 2021 at 2:50 AM To: IBM/aspera-cli aspera-cli@noreply.github.com Cc: "Henderson, Chris" Chris.Henderson@warnerbros.com, Author author@noreply.github.com Subject: Re: [IBM/aspera-cli] Feature Request - Rename Package (#36)

[CAUTION] This email originated outside Warner Bros.

the command: ascli aoc amdin resource package has the sub command modify

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/IBM/aspera-cli/issues/36*issuecomment-792668889__;Iw!!AQdq3sQhfUj4q8uUguY!0pZTX1O0pAxDbdGU1llGDtywS3GAhLnRGILK_HlxKf0mKtoT9-RNPjR7d8MZzz-nvcUcXqU$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AQHMSBW44HDBPR7PWC6I7ETTCSTWLANCNFSM4YFIAROQ__;!!AQdq3sQhfUj4q8uUguY!0pZTX1O0pAxDbdGU1llGDtywS3GAhLnRGILK_HlxKf0mKtoT9-RNPjR7d8MZzz-nY_02yrA$.

laurent-martin commented 2 years ago

I checked that the AoC API does not allow to rename an already sent package:

ascli aoc admin res pack --id=HxzZAKbNwi modify @json:'{"name":"new name"}'

ERROR: Rest: found unpermitted parameter: :name
code: unpermitted_parameters
request_id: 1b6afbbe-28de-4d71-b112-a9751c7fb26a
api.ibmaspera.com 422 Unprocessable Entity

Not a limitation of the CLI, but it's by design of AoC