Traffic Types
List workspace-scoped traffic types.
Returns a paginated list of Traffic Types in the specified project workspace.
Harness Service Account Token (SAT) or Personal Access Token (PAT). Generate tokens in Harness under Account Settings → Access Management.
Harness account identifier. Required on all endpoints.
{{accountId}}Pattern: ^[-_A-Za-z0-9]+$Harness organization identifier.
defaultPattern: ^[-_A-Za-z0-9]+$Harness project identifier.
my_projectPattern: ^[-_A-Za-z0-9]+$Number of items to return per page. Defaults to 100, maximum 100.
100Example: 100Number of items to skip before the first returned result. Defaults to 0.
0Example: 0OK — paginated list of traffic types returned.
Paginated list of Traffic Types matching the query.
The page size used for this response.
100The number of items skipped before the first result.
0Total number of traffic types matching the query.
2Bad Request — validation errors or invalid state transition.
Unauthorized — the request is missing a valid API key, or the key has expired.
Forbidden — the caller is authenticated but not permitted to perform this operation.
Returned when the API can deny the operation without leaking whether a resource exists,
such as create, or write operations where the caller can already read the resource. When
returning 403 would reveal resource existence, the API returns 404 instead.
Environment-scoped mutations that require approval also return 403.
Too Many Requests — the caller has exceeded the rate limit for this endpoint.
Internal Server Error — an unexpected error occurred while processing the request.
GET /fme/api/v4/traffic-types?account_id={{accountId}}&organization_identifier=default&project_identifier=my_project HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": "ad2eb8f0-9c3a-11ed-873c-e234abaad323",
"name": "user"
},
{
"id": "bd3fc9a1-0d4b-12fe-984d-f345bcbbe430",
"name": "account"
}
],
"limit": 100,
"offset": 0,
"totalCount": 2
}Last updated
Was this helpful?