Skip to content

Marketplace Global Categories

Operations Summary

Method Endpoint Description
GET /api/marketplace-global-categories/ Get resource counts by category

Get resource counts by category

1
2
3
4
5
    Returns a dictionary mapping marketplace category UUIDs to the count of active (non-terminated)
    resources the current user has access to within that category. This is primarily used for UI
    dashboards or sidebars to display the number of resources in each category filter.

    The counts can be further filtered by providing a `project_uuid` or `customer_uuid`.
1
2
3
4
http \
  GET \
  https://api.example.com/api/marketplace-global-categories/ \
  Authorization:"Token YOUR_API_TOKEN"
1
2
3
4
5
6
7
8
9
from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.api.marketplace_global_categories import marketplace_global_categories_retrieve # (1)

client = AuthenticatedClient(
    base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
response = marketplace_global_categories_retrieve.sync(client=client)

print(response)
  1. API Source: marketplace_global_categories_retrieve
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import { marketplaceGlobalCategoriesRetrieve } from 'waldur-js-client';

try {
  const response = await marketplaceGlobalCategoriesRetrieve({
  auth: "Token YOUR_API_TOKEN"
});
  console.log('Success:', response);
} catch (error) {
  console.error('Error:', error);
}
Name Type Description
customer_uuid string (uuid) Filter counts by resources within a specific customer.
project_uuid string (uuid) Filter counts by resources within a specific project.

200 -