Forum Discussion

jbosch's avatar
jbosch
Icon for Nimbostratus rankNimbostratus
Sep 18, 2019

How do I "save /sys config file <SCF_filename> no-passphrase" using REST?

I am trying to use REST to save the configuration of a node, when I issue this command from the CLI I get a configuration file in /var/local/scf/: however when I tried it with the JSON I will show you in a bit only a PGP message shows up in the file I want to save to.

this is my request, I post this to /mgmt/tm/sys/config:

{"options":[{"file":"koffie"},{"passphrase":"no-passphrase"}],"command":"save"}

the response I get:

{"kind":"tm:sys:config:savestate","options":[{"file":"koffie"},{"passphras
e":"no-passphrase"}],"command":"save"}

Response status: 200

Trying this on 14.1.0.3

I think I am missing something, can anybody enlighten me? Thanks in advance.

3 Replies

  • Hi jbosch,

    Can you try this?

    {
    	"options":[
    		{
    			"file":"koffie",
    			"passphrase":"no-passphrase"
    		}
    	],
    	"command":"save"
    }
    • jbosch's avatar
      jbosch
      Icon for Nimbostratus rankNimbostratus

      Hi eaa, thank you for your response, I tried it: still get a koffie and koffie.tar in /var/local/scf however they only contain the PGP message: no configuration.

       

      If you have any ideas how to do this using REST please let me know, thanks in advance!

    • jbosch's avatar
      jbosch
      Icon for Nimbostratus rankNimbostratus

      Hi eaa, does this work for you though? I have been trying for awhile now and I cannot make any progress. I am trying this on a virtual F5 instance by the way.