Returns the function’s configured log export destination and which log types are exported. Headers are never returned. Returns 404 (error code 10005) when no destination is configured for the function.
GET
/
compute
/
funcs
/
{id}
/
logs
/
export
JavaScript
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const response of client.compute.funcs.export.list()) { console.log(response);}
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.compute.funcs.export.list(
"id",
)
print(page.data)
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var page = client.compute().funcs().export().list("id");
}
}
require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.compute.funcs.export.list("id")
puts(page)
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->compute->funcs->export->list(
'id',
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}
telnyx compute:funcs:export list \
--api-key 'My API Key' \
--id id
Metadata-only view of a function's log export destination. Header values are write-only (encrypted server-side) and never appear in any response.
Show child attributes
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';const client = new Telnyx({ apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const response of client.compute.funcs.export.list()) { console.log(response);}
import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
page = client.compute.funcs.export.list(
"id",
)
print(page.data)
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
var page = client.compute().funcs().export().list("id");
}
}
require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
page = telnyx.compute.funcs.export.list("id")
puts(page)
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$page = $client->compute->funcs->export->list(
'id',
);
var_dump($page);
} catch (APIException $e) {
echo $e->getMessage();
}
telnyx compute:funcs:export list \
--api-key 'My API Key' \
--id id