AptlyStar

LaunchDarkly

Manage feature flags with LaunchDarkly.

使用说明

Integrate LaunchDarkly into your workflow. List, create, update, toggle, and delete feature flags. Manage projects, environments, segments, members, and audit logs. Requires API Key.

工具

launchdarkly_create_flag

Create a new feature flag in a LaunchDarkly project.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key to create the flag in
namestring是Human-readable name for the feature flag
keystring是Unique key for the feature flag (used in code)
descriptionstring否Description of the feature flag
tagsstring否Comma-separated list of tags
temporaryboolean否Whether the flag is temporary (default true)

输出

参数类型描述
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
↳ valuestringThe variation value
↳ namestringThe variation name
↳ descriptionstringThe variation description
maintainerIdstringThe ID of the member who maintains this flag

launchdarkly_delete_flag

Delete a feature flag from a LaunchDarkly project.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
flagKeystring是The feature flag key to delete

输出

参数类型描述
deletedbooleanWhether the flag was successfully deleted

launchdarkly_get_audit_log

List audit log entries from your LaunchDarkly account.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
limitnumber否Maximum number of entries to return (default 10, max 20)
specstring否Filter expression (e.g., "resourceType:flag")

输出

参数类型描述
entriesarrayList of audit log entries
↳ idstringThe audit log entry ID
↳ datenumberUnix timestamp in milliseconds
↳ kindstringThe type of action performed
↳ namestringThe name of the resource acted on
↳ descriptionstringFull description of the action
↳ shortDescriptionstringShort description of the action
↳ memberEmailstringEmail of the member who performed the action
↳ targetNamestringName of the target resource
↳ targetKindstringKind of the target resource
totalCountnumberTotal number of audit log entries

launchdarkly_get_flag

Get a single feature flag by key from a LaunchDarkly project.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
flagKeystring是The feature flag key
environmentKeystring否Filter flag configuration to a specific environment

输出

参数类型描述
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
↳ valuestringThe variation value
↳ namestringThe variation name
↳ descriptionstringThe variation description
maintainerIdstringThe ID of the member who maintains this flag
onbooleanWhether the flag is on in the requested environment (null if no single environment was specified)

launchdarkly_get_flag_status

Get the status of a feature flag across environments (active, inactive, launched, etc.).

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
flagKeystring是The feature flag key
environmentKeystring是The environment key

输出

参数类型描述
namestringThe flag status (new, active, inactive, launched)
lastRequestedstringTimestamp of the last evaluation
defaultValstringThe default variation value

launchdarkly_list_environments

List environments in a LaunchDarkly project.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key to list environments for
limitnumber否Maximum number of environments to return (default 20)

输出

参数类型描述
environmentsarrayList of environments
↳ idstringThe environment ID
↳ keystringThe unique environment key
↳ namestringThe environment name
↳ colorstringThe color assigned to this environment
↳ apiKeystringThe server-side SDK key for this environment
↳ mobileKeystringThe mobile SDK key for this environment
↳ tagsarrayTags applied to the environment
totalCountnumberTotal number of environments

launchdarkly_list_flags

List feature flags in a LaunchDarkly project.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key to list flags for
environmentKeystring否Filter flag configurations to a specific environment
tagstring否Filter flags by tag name
limitnumber否Maximum number of flags to return (default 20)

输出

参数类型描述
flagsarrayList of feature flags
↳ keystringThe unique key of the feature flag
↳ namestringThe human-readable name of the feature flag
↳ kindstringThe type of flag (boolean or multivariate)
↳ descriptionstringDescription of the feature flag
↳ temporarybooleanWhether the flag is temporary
↳ archivedbooleanWhether the flag is archived
↳ deprecatedbooleanWhether the flag is deprecated
↳ creationDatenumberUnix timestamp in milliseconds when the flag was created
↳ tagsarrayTags applied to the flag
↳ variationsarrayThe variations for this feature flag
↳ valuestringThe variation value
↳ namestringThe variation name
↳ descriptionstringThe variation description
↳ maintainerIdstringThe ID of the member who maintains this flag
totalCountnumberTotal number of flags

launchdarkly_list_members

List account members in your LaunchDarkly organization.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
limitnumber否Maximum number of members to return (default 20)

输出

参数类型描述
membersarrayList of account members
↳ idstringThe member ID
↳ emailstringThe member email address
↳ firstNamestringThe member first name
↳ lastNamestringThe member last name
↳ rolestringThe member role (reader, writer, admin, owner)
↳ lastSeennumberUnix timestamp of last activity
↳ creationDatenumberUnix timestamp when the member was created
↳ verifiedbooleanWhether the member email is verified
totalCountnumberTotal number of members

launchdarkly_list_projects

List all projects in your LaunchDarkly account.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
limitnumber否Maximum number of projects to return (default 20)

输出

参数类型描述
projectsarrayList of projects
↳ idstringThe project ID
↳ keystringThe unique project key
↳ namestringThe project name
↳ tagsarrayTags applied to the project
totalCountnumberTotal number of projects

launchdarkly_list_segments

List user segments in a LaunchDarkly project and environment.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
environmentKeystring是The environment key
limitnumber否Maximum number of segments to return (default 20)

输出

参数类型描述
segmentsarrayList of user segments
↳ keystringThe unique segment key
↳ namestringThe segment name
↳ descriptionstringThe segment description
↳ tagsarrayTags applied to the segment
↳ creationDatenumberUnix timestamp in milliseconds when the segment was created
↳ unboundedbooleanWhether this is an unbounded (big) segment
↳ includedarrayUser keys explicitly included in the segment
↳ excludedarrayUser keys explicitly excluded from the segment
totalCountnumberTotal number of segments

launchdarkly_toggle_flag

Toggle a feature flag on or off in a specific LaunchDarkly environment.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
flagKeystring是The feature flag key to toggle
environmentKeystring是The environment key to toggle the flag in
enabledboolean是Whether to turn the flag on (true) or off (false)

输出

参数类型描述
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
↳ valuestringThe variation value
↳ namestringThe variation name
↳ descriptionstringThe variation description
maintainerIdstringThe ID of the member who maintains this flag
onbooleanWhether the flag is now on in the target environment

launchdarkly_update_flag

Update a feature flag metadata (name, description, tags, temporary, archived) using semantic patch.

输入

参数类型必填描述
apiKeystring是LaunchDarkly API key
projectKeystring是The project key
flagKeystring是The feature flag key to update
updateNamestring否New name for the flag
updateDescriptionstring否New description for the flag
addTagsstring否Comma-separated tags to add
removeTagsstring否Comma-separated tags to remove
archiveboolean否Set to true to archive, false to restore
commentstring否Optional comment explaining the update

输出

参数类型描述
keystringThe unique key of the feature flag
namestringThe human-readable name of the feature flag
kindstringThe type of flag (boolean or multivariate)
descriptionstringDescription of the feature flag
temporarybooleanWhether the flag is temporary
archivedbooleanWhether the flag is archived
deprecatedbooleanWhether the flag is deprecated
creationDatenumberUnix timestamp in milliseconds when the flag was created
tagsarrayTags applied to the flag
variationsarrayThe variations for this feature flag
↳ valuestringThe variation value
↳ namestringThe variation name
↳ descriptionstringThe variation description
maintainerIdstringThe ID of the member who maintains this flag

On this page