python-tss-sdk icon indicating copy to clipboard operation
python-tss-sdk copied to clipboard

Added get_child_folder_ids_by_folderid

Open AndriiHoropatskyiDelinea opened this issue 1 year ago • 4 comments

@AndriiHoropatskyiDelinea Test case is getting fail for your new function. I think you are using wrong API endpoint to getting child folders. In current code you have invoked search_secret() function but this function is used to get secret details not folder details. You need to introduce new function like search_folder() which will return details then you can get child folders details by passing query parameter getAllChildren=true to this function. Also in param["Take"] parameter need to get child folders count. For more details please refer secret server REST API doc (Folder section). Your endpoint should be "{self.api_url}/folders/id" which will return all child folders array when getAllChildren=true in query param.

delinea-sagar avatar Feb 29 '24 04:02 delinea-sagar

Hi @AndriiHoropatskyiDelinea,

any news on that? Can I help out somewhere?

SimHeb avatar Mar 04 '24 09:03 SimHeb

Hi @AndriiHoropatskyiDelinea,

any news on that? Can I help out somewhere?

Hi. Yes, these are your changes, but the tests did not work in the previous PR because the secrets are not available for the fork. Therefore, you can edit the code in my branch and supplement this PR.

@AndriiHoropatskyiDelinea, This can be closed, I created a new PR here.

SimHeb avatar May 10 '24 14:05 SimHeb