Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

cpcfg Copy Config equivalent in REST

Is there any equivalent for cpcfg command in REST API?I would like to copy config from old volume to new volume after Upgrade.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

You can use the /mgmt/tm/util/bash endpoint for executing a bash program such as ls. e.g.,

curl -sku <user>:<pass> https://<host>/mgmt/tm/util/bash \
  -X POST -H "Content-Type: application/json" \
  -d '{"command":"run", "utilCmdArgs":"-c \"cpcfg --source=HD1.2 HD1.3\""}'

See also:

0
Comments on this Answer
Comment made 1 month ago by Lalitha 74

Thanks Satoshi.Will try this.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

F5 iControl REST is a framework laying over the top of tmsh where cpcfg is a bash utility so this is not going to have an equivalent iControl REST command sorry.

0
Comments on this Answer
Comment made 1 month ago by Lalitha 74

Thanks Andy

0