@@ -13,14 +13,65 @@ DESCRIPTION
1313 This command updates a function in an application.
1414
1515COMMAND OPTIONS
16- --memory value, -m value Memory in MiB (default: 0)
17- --config value, -c value Function configuration
18- --timeout value Function timeout (eg. 30) (default: 0)
19- --idle-timeout value Function idle timeout (eg. 30) (default: 0)
20- --annotation value Function annotation (can be specified multiple times)
21- --image value Function image
16+ --memory value, -m value Memory in MiB (default: 0)
17+ --config value, -c value Function configuration
18+ --timeout value Function timeout (eg. 30) (default: 0)
19+ --idle-timeout value Function idle timeout (eg. 30) (default: 0)
20+ --annotation value Function annotation (can be specified multiple times)
21+ --image value Function image
22+ --tag value Freeform tag in key=value form (repeatable)
23+ --defined-tag value Defined tag in namespace.key=value form (repeatable)
24+ --remove-tag value Remove a freeform tag by key (repeatable)
25+ --remove-defined-tag value Remove a defined tag by namespace.key (repeatable)
26+ --clear-tags Clear all freeform and defined tags
27+ --clear-freeform-tags Clear all freeform tags
28+ --clear-defined-tags Clear all defined tags
29+ --provisioned-concurrency value Provisioned concurrency (none | constant:<count >)
30+ --detached-timeout value Detached invocation timeout (e.g. 20m, 1h)
31+ --on-success value Success destination shorthand (<stream|queue|notifications>:<ocid >)
32+ --on-failure value Failure destination shorthand (<stream|queue|notifications>:<ocid >)
33+ --clear-on-success Clear detached success destination
34+ --clear-on-failure Clear detached failure destination
35+ --pbf value Pre-Built Function listing OCID source
36+ --from-json value Structured JSON input for command parameters
37+ --if-match value Apply optimistic concurrency control using the provided etag
38+ --wait-for-state value Wait until resource reaches lifecycle state
39+ --max-wait-seconds value Max waiter duration in seconds
40+ --wait-interval-seconds value Waiter poll interval in seconds
41+ --trace-config value OCI trace config JSON or file:// path
42+ --timeout-in-seconds value OCI parity timeout option in seconds
43+ --detached-mode-timeout-in-seconds value OCI parity detached timeout in seconds
44+ --success-destination value OCI parity destination JSON or file:// path
45+ --failure-destination value OCI parity destination JSON or file:// path
2246
2347```
2448
25- [Some link](#)
49+ ## Examples
50+
51+ Update provisioned concurrency:
52+
53+ ```bash
54+ fn update function my-app my-fn --provisioned-concurrency constant:10
55+ ```
56+
57+ Update long-running settings:
58+
59+ ``` bash
60+ fn update function my-app my-fn \
61+ --detached-timeout 1h \
62+ --on-success stream:ocid1.stream.oc1..aaaa \
63+ --on-failure notifications:ocid1.onstopic.oc1..aaaa
64+ ```
65+
66+ Clear long-running destinations:
67+
68+ ``` bash
69+ fn update function my-app my-fn --clear-on-success --clear-on-failure
70+ ```
71+
72+ Update from JSON:
73+
74+ ``` bash
75+ fn update function my-app my-fn --from-json file:///absolute/path/fn-create.json
76+ ```
2677
0 commit comments