Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Traffic Types

List workspace-scoped traffic types.

List Traffic Types

get
/v4/traffic-types

Returns a paginated list of Traffic Types in the specified project workspace.

Authorizations
x-api-keystringRequired

Harness Service Account Token (SAT) or Personal Access Token (PAT). Generate tokens in Harness under Account Settings → Access Management.

Query parameters
account_idstring · max: 128Required

Harness account identifier. Required on all endpoints.

Example: {{accountId}}Pattern: ^[-_A-Za-z0-9]+$
organization_identifierstring · max: 128Required

Harness organization identifier.

Example: defaultPattern: ^[-_A-Za-z0-9]+$
project_identifierstring · max: 128Required

Harness project identifier.

Example: my_projectPattern: ^[-_A-Za-z0-9]+$
limitinteger · min: 1 · max: 100Optional

Number of items to return per page. Defaults to 100, maximum 100.

Default: 100Example: 100
offsetintegerOptional

Number of items to skip before the first returned result. Defaults to 0.

Default: 0Example: 0
Responses
200

OK — paginated list of traffic types returned.

application/json

Paginated list of Traffic Types matching the query.

limitintegerRequired

The page size used for this response.

Example: 100
offsetintegerRequired

The number of items skipped before the first result.

Example: 0
totalCountintegerRequired

Total number of traffic types matching the query.

Example: 2
get/v4/traffic-types
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?