列出遙測目的地工作區
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Requires
anthropic-beta: telemetry-destinations-2026-08-11. How to send beta headers列出目的地工作區清單中的工作區,最新的項目排在最前面。
workspaces.type 為 all 的目的地沒有清單,因此其頁面為空。清單中包含已封存的工作區。
請參閱 OpenTelemetry 匯出指南,進一步了解如何為目的地選擇工作區。
Parameters
Returns
列出遙測目的地工作區
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$page = $client->beta->organization->telemetryDestinations->workspaces->list(
'destination_id',
limit: 0,
page: 'page',
betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);
var_dump($page);Response 200
{
"data": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}