import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const subTenantListCombinedResponse of client.subTenants.listCombined()) {
console.log(subTenantListCombinedResponse.id);
}{
"data": [
{
"subTenantId": "production",
"isRegistered": true,
"name": "Production Environment",
"description": "Main production environment",
"id": "st_abc123def456",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
],
"page": 0,
"lastPage": 2
}Retrieves a combined paginated list of both registered sub-tenants and arbitrary sub-tenant IDs found in runs. Accepts both public and secret keys.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
// Automatically fetches more pages as needed.
for await (const subTenantListCombinedResponse of client.subTenants.listCombined()) {
console.log(subTenantListCombinedResponse.id);
}{
"data": [
{
"subTenantId": "production",
"isRegistered": true,
"name": "Production Environment",
"description": "Main production environment",
"id": "st_abc123def456",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
],
"page": 0,
"lastPage": 2
}Chave de API do tenant (publishable key ou secret key)
Chave de API do tenant (publishable key ou secret key)
Number of sub-tenants per page
20
Page number (zero-based)
0
Was this page helpful?