Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Participant

Mgmt API - Web Services - put-file

Jump to solution

Hello,

 

Is there a way to change permissions of a file using the mgmt API? 

I am using the put-file module (specifically the cp_mgmt_put_file ansible cp module) to copy a file from a local server via the mgmt API to a remote security gateway.  I need to change the default permissions the file inherits (644- rw-r-r) so the file can be executed after being copied. 

The put-file doesn't appear to have any functionality to set the destination permissions of the file it is copying.   

 

Regards,

Simon

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Admin
Admin

You can use the run-script API to run chmod to do that.

View solution in original post

1 Reply
Highlighted
Admin
Admin

You can use the run-script API to run chmod to do that.

View solution in original post