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 |
|---|---|---|---|---|
|
function
|
path | True |
string |
Identifica una funzione definita dall'utente. |
|
ledger
|
path | True |
string (uri) |
L'URL del libro mastro riservato, ad esempio |
|
api-version
|
query | True |
string minLength: 1 |
Versione dell'API da usare per questa operazione. |
Risposte
| Nome | Tipo | Descrizione |
|---|---|---|
| 200 OK |
La richiesta ha avuto esito positivo. |
|
| Other Status Codes |
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 |
|---|---|
|
Confidential |
Risposta di errore da Confidential Ledger. |
|
Confidential |
Risposta di errore da Confidential Ledger. |
|
User |
Funzione definita dall'utente nel libro mastro. |
ConfidentialLedgerCommon.ConfidentialLedgerError
Risposta di errore da Confidential Ledger.
| Nome | Tipo | Descrizione |
|---|---|---|
| error |
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. |