provider Views (beta) GET /api/v2/projects/{projectKey}/view-associations/{resourceType}/{resourceKey}
@utdk/launchdarkly /api/v2/projects/{projectKey}/view-associations/{resourceType}/{resourceKey}
Get linked views for a given resource
Get a list of all linked views for a resource. Flags and AI configs are identified by key. Segments are identified by segment ID.
LD-API-Version header required
Version of the endpoint.
enum: beta
projectKey path required
string
resourceType path required
enum: flags, segments, aiConfigs
resourceKey path required
string
environmentId query
Environment ID. Required when resourceType is 'segments'
string
limit query
The number of views to return.
integer
offset query
Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.
integer

Try it

Authentication
Configure credentials for LaunchDarkly REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

getlinkedviews
GET/api/v2/projects/{projectKey}/view-associations/{resourceType}/{resourceKey}
Get a list of all linked views for a resource. Flags and AI configs are identified by key. Segments are identified by segment ID.

Parameters

required
required
required

Environment ID. Required when resourceType is 'segments'

The number of views to return.

Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and then returns the next items in the list, up to the query `limit`.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import launchdarkly from '@utdk/launchdarkly';

await launchdarkly.getlinkedviews()