Condividi tramite


Get User Defined Function - Get User Defined Function

Ottiene una funzione definita dall'utente.
Restituisce la funzione definita dall'utente nel libro mastro riservato

GET {ledgerEndpoint}/app/userDefinedFunctions/{functionId}?api-version=2024-12-09-preview

Parametri dell'URI

Nome In Necessario Tipo Descrizione
functionId
path True

string

Identifica una funzione definita dall'utente.

ledgerEndpoint
path True

string (uri)

L'URL del libro mastro riservato, ad esempio https://contoso.confidentialledger.azure.com.

api-version
query True

string

minLength: 1

Versione dell'API da usare per questa operazione.

Risposte

Nome Tipo Descrizione
200 OK

UserDefinedFunction

La richiesta ha avuto esito positivo.

Other Status Codes

ConfidentialLedgerCommon.ConfidentialLedgerError

Risposta di errore imprevista.

Esempio

Get User Defined Function

Esempio di richiesta

GET {ledgerEndpoint}/app/userDefinedFunctions/myFunction?api-version=2024-12-09-preview

Risposta di esempio

{
  "id": "myFunction",
  "code": "export function main() { return true }"
}

Definizioni

Nome Descrizione
ConfidentialLedgerCommon.ConfidentialLedgerError

Risposta di errore da Confidential Ledger.

ConfidentialLedgerCommon.ConfidentialLedgerErrorBody

Risposta di errore da Confidential Ledger.

UserDefinedFunction

Funzione definita dall'utente nel libro mastro.

ConfidentialLedgerCommon.ConfidentialLedgerError

Risposta di errore da Confidential Ledger.

Nome Tipo Descrizione
error

ConfidentialLedgerCommon.ConfidentialLedgerErrorBody

Risposta di errore da Confidential Ledger.

ConfidentialLedgerCommon.ConfidentialLedgerErrorBody

Risposta di errore da Confidential Ledger.

Nome Tipo Descrizione
code

string

Codice di errore.

message

string

Messaggio di errore.

UserDefinedFunction

Funzione definita dall'utente nel libro mastro.

Nome Tipo Descrizione
code

string

Codice della funzione definita dall'utente in JavaScript.

id

string

ID della funzione definita dall'utente.