Retrieve all SKUs
Retrieve all SKUs (Stock Keeping Units) for the Infrastructure Provider or privileged Tenant.
SKUs represent unique hardware configurations discovered at sites. They are automatically derived from machine characteristics.
A `siteId` query parameter is required for all requests.
For Infrastructure Providers: Org must have an Infrastructure Provider entity. User must have `FORGE_PROVIDER_ADMIN` or `FORGE_PROVIDER_VIEWER` role.
For Tenants: Org must have a Tenant with `TargetedInstanceCreation` capability enabled. User must have `FORGE_TENANT_ADMIN` role. The Tenant must have an account with the Site's Infrastructure Provider.
Authentication
AuthorizationBearer
```
export JWT_BEARER_TOKEN="<jwt-bearer-token>"
# Example org name: "acme-inc
export ORG_NAME=<org-name>
# Use the JWT bearer token in your API request auth header:
curl -v -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $JWT_BEARER_TOKEN" https://carbide-rest-api.carbide.svc.cluster.local/v2/org/$ORG_NAME/carbide/user/current
```
Path parameters
org
Query parameters
siteId
ID of the Site to retrieve SKUs from
pageNumber
Page number for pagination query
pageSize
Page size for pagination query
orderBy
Ordering for pagination query
Response headers
X-Pagination
Pagination result in JSON format
Response
OK
id
Unique identifier for the SKU
siteId
ID of the Site this SKU belongs to
deviceType
Optional device type identifier (e.g. “gpu”, “cpu”, “storage”)
associatedMachineIds
List of machine IDs associated with this SKU
components
Hardware components of this SKU
created
ISO 8601 datetime when the SKU was created
updated
ISO 8601 datetime when the SKU was last updated
Errors
400
Bad Request Error
403
Forbidden Error