Beispiel zu Functions

Im Folgenden finden Sie einen Beispielbefehl für Functions-bezogenes Logging.

So aktivieren Sie Functions-Logging

oci logging log create --display-name cli_test --log-group-id ocid1.loggroup.oc1.phx.<log_group_OCID> --log-type SERVICE --is-enabled true --configuration file://fnconfig.json

Beispiel für eine fnconfig.json-Konfigurationsdatei:

{
    "compartment-id":"ocid1.compartment.oc1..<compartment_OCID>"
    "source": {
        "resource": "ocid1.fnapp.oc1.phx.<unique_ID>",
        "service": "functions",
        "source-type": "OCISERVICE",
        "category": "invoke"
    }
}