• Home
  • Integrations
  • SDKs
  • Guides
  • API docs
    No results for ""
    EXPAND ALL

    EDIT ON GITHUB

    Using actions

    Read time: 3 minutes
    Last edited: Mar 20, 2023

    Overview

    This topic explains how to use actions in custom roles policies. It includes tables with all supported actions and details about them. These actions are scoped by resource type.

    Actions represent changes you can make to resources, such as createFlag, deleteFlag, updateName, and more.

    To learn more about how actions work within custom role policies, read Custom role concepts.

    Actions reference

    These are all the actions you can take, sorted by each resource type.

    You can specify actions in bulk using glob syntax and wildcards. For example, you can describe all modifications to feature flags with the action specifier update*.

    Account actions

    Expand Account actions

    acct is a top-level resource. A code sample is below:

    acct

    This table explains available account actions:

    ActionDescription
    createSamlConfigCreate a new SAML configuration for the account.
    createScimConfigCreate a new SCIM configuration for the account.
    deleteAccountDelete the account.
    deleteAccountTokenDelete account tokens (for the LaunchDarkly REST API).
    deleteSamlConfigDelete the SAML configuration for the account.
    deleteScimConfigDelete the SCIM configuration for the account.
    deleteSubscriptionCancel the account plan.
    getPaymentCardGet the credit card for the account.
    revokeSessionsRevoke sessions issued before a specified date.
    updateAccountTokenReset account tokens (for the LaunchDarkly REST API).
    updateBillingContactUpdate the billing contact for the account.
    updateOrganizationUpdate the organization name.
    updatePaymentCardChange the credit card for the account.
    updateRequireMfaChange whether multi-factor authentication (MFA) is required for all members on the account.
    updateSamlEnabledEnable or disable SAML SSO for the account.
    updateSamlRequireSsoChange whether SSO must be used for authentication.
    updateSamlSsoUrlUpdate the SAML SSO URL for the account.
    updateSamlX509CertificateUpdate the SAML X509 certificate for the account.
    updateSessionDurationChange the duration of sessions.
    updateSessionRefreshChange whether sessions are refreshed automatically.
    updateSubscriptionChange the pricing plan for the account.

    Account ownership actions

    This table explains available account ownership actions:

    updateAccountOwnerUpdate the account owner.

    Code reference actions

    Expand Code reference actions

    code-reference-repository is a top-level resource. A code sample is below:

    code-reference-repository/*

    To learn more, read Code references.

    This table explains available code reference actions:

    ActionDescription
    createCodeRefsRepositoryConnect a Git repository.
    deleteCodeRefsRepositoryDelete a Git repository connection.
    updateCodeRefsRepositoryBranchesUpdate the stored branch data for a Git repository connection.
    updateCodeRefsRepositoryConfigurationUpdate a Git repository connection configuration.
    updateCodeRefsRepositoryNameUpdate a Git repository connection name.
    updateCodeRefsRepositoryOnFlip the on/off status of a Git repository connection.

    Context kind actions

    Expand Context kind actions

    context-kind is a child of a project. A code sample is below:

    proj/*:context-kind/*

    To learn more, read Context kinds.

    This table explains available context kind actions:

    ActionDescription
    createContextKindCreate a context kind.
    updateContextKindUpdate a context kind.
    updateAvailabilityForExperimentsUpdate whether a context kind is available for experiments, the standard randomization that it maps to, and whether it's the project's default.

    Destination actions

    Expand Destination actions

    destination is a child of both a project and environments. A code sample is below:

    proj/*:env/*:destination/*

    To learn more, read Data Export.

    This table explains available destinations actions:

    ActionDescription
    createDestinationCreate a new Data Export destination.
    deleteDestinationDelete a Data Export destination.
    updateConfigurationChange a Data Export destination.
    updateNameChange the name of a Data Export destination.
    updateOnFlip the on/off status of a Data Export destination.

    Environment actions

    Expand Environment actions

    env is a child resource of projects. A code sample is below:

    proj/*:env/*

    To learn more, read Environments.

    This table explains available environments actions:

    ActionDescription
    createEnvironmentCreate new environments.
    deleteEnvironmentDelete an existing environment.
    deleteContextInstanceDelete a context's instances.
    updateApiKeyReset the SDK key for an environment.
    updateApprovalSettingsConfigure the approval settings for an environment.
    updateColorChange the color swatch for an environment.
    updateConfirmChangesRequire environment confirmation for changes to flags and segments.
    updateDefaultTrackEventsTurn on sending detailed information for new flags by default.
    updateMobileKeyReset the mobile key for an environment.
    updateNameChange the name of an environment.
    updateRequireCommentsRequire comments for changes to flags and segments.
    updateSecureModeTurn secure mode on or off for an environment.
    updateTagsUpdate tags associated with an environment.
    updateTtlChange the TTL for an environment.
    viewSdkKeyView the server-side SDK key. All custom roles can take this action by default. If set to deny, anyone impacted by this policy can neither view nor reset SDK keys.
    More information about viewSdkKey

    The deny effect in the viewSdkKey action hides the server-side SDK key you specify from the member. However, the allow effect for the same resource and action pairing doesn't do anything. Your LaunchDarkly member does not need explicit permission to view the keys, because all custom roles can view all environments in a LaunchDarkly instance by default.

    Experiment actions

    Expand experiment actions

    experiment is a child of both a project and environments. A code sample is below:

    proj/*:env/*:experiment/*

    To learn more, read About Experimentation.

    This table explains available experiment actions:

    ActionDescription
    createExperimentCreate an experiment.
    updateExperimentStart, stop, or edit an existing experiment.
    updateExperimentArchivedArchive an experiment.

    Feature flag actions

    Expand Feature flag actions

    flag is a child of both a project and environments. A code sample is below:

    proj/*:env/*:flag/*

    To learn more, read Your first feature flag.

    Some feature flag actions affect only the current environment. Other feature flag actions affect all environments in a project.

    This table explains available feature flag actions that affect only the current environment:

    ActionDescription
    applyApprovalRequestApply an approved approval request for a flag.
    bypassRequiredApprovalBypass required approvals in the environment.
    copyFlagConfigFromCopy settings from a feature flag.
    copyFlagConfigToCopy settings to a feature flag.
    createApprovalRequestCreate an approval request for a flag.
    createTriggersCreate a new trigger.
    deleteApprovalRequestDelete an approval request for a flag.
    deleteExperimentResultsDelete legacy experiment results. To learn more, read Legacy experiments.
    deleteFlagAttachedGoalResultsReset legacy experiment results for a flag in a given environment. To learn more, read Legacy experiments.
    deleteTriggersDelete a trigger.
    reviewApprovalRequestReview an approval request for a flag.
    updateApprovalRequestUpdate an existing approval request for a flag.
    updateExperimentActiveStop a legacy experiment in an environment. To learn more, read Legacy experiments.
    updateExpiringRulesChange a flag's expiring custom targeting rules.
    updateExpiringTargetsChange a flag's expiring individual context targeting rules.
    updateFallthroughUpdate the On default rule, also called the "fallthrough" rule.
    updateFeatureWorkflowsChange a flag's feature workflows.
    updateFlagFallthroughTrackEventsChange whether to send detailed event information for a flag in a given environment when the SDK selects the On default rule, also called the "fallthrough" rule.
    updateFlagRuleDescriptionUpdate the description for custom targeting rules.
    updateFlagSaltUpdate a feature flag's salt.
    updateOffVariationUpdate the variation returned when flag toggle is set to off.
    updateOnToggle a feature flag on or off.
    updatePrerequisitesUpdate flag prerequisites.
    updateRulesUpdate custom targeting rules.
    updateScheduledChangesChange the scheduled updates on a feature flag.
    updateTargetsUpdate individual context targeting rules.
    updateTrackEventsChange whether to send detailed event information for a flag in a given environment.
    updateTriggersUpdate an existing trigger.
    manageFlagFollowersManage the list of members who receive flag change notifications.

    This table explains available feature flag actions that affect all environments within a project:

    ActionDescription
    cloneFlagCreate a new flag with settings based on an existing flag. To clone a flag, members need to have the cloneFlag permission on the source flag, as well as the createFlag permission for the new flag. Impacts all environments in a project.
    createExperimentCreate a legacy experiment. Impacts all environments in a project. To learn more, read Legacy experiments.
    createFlagCreate a feature flag. Impacts all environments in a project.
    createFlagLinkCreate a flag link. Impacts all environments in a project.
    deleteExperimentDelete a legacy experiment. Impacts all environments in a project. To learn more, read Legacy experiments.
    deleteFlagDelete a flag. Impacts all environments in a project.
    deleteFlagLinkDelete a flag link. Impacts all environments in a project.
    updateAttachedGoalsStop a legacy experiment. Impacts all environments in a project. To learn more, read Legacy experiments.
    updateClientSideFlagAvailabilityChange whether the feature flag is available to client-side SDKs. Impacts all environments in a project.
    updateDescriptionChange the description of a feature flag. Impacts all environments in a project.
    updateExperimentBaselineChange a flag's baseline variation for a legacy experiment. Impacts all environments in a project. To learn more, read Legacy experiments.
    updateFlagCustomPropertiesUpdate custom properties attached to a flag. Impacts all environments in a project.
    updateFlagDefaultVariationsChange the default flag variations used by newly created environments for a feature flag. Impacts all environments in a project.
    updateFlagLinkUpdate a flag link. Impacts all environments in a project.
    updateFlagVariationsChange the flag's variations. Impacts all environments in a project.
    updateGlobalArchivedChange whether a flag is archived. Impacts all environments in a project.
    updateIncludeInSnippetChange whether the feature flag is available to front-end code with the JavaScript SDK. Impacts all environments in a project.
    updateMaintainerUpdate the flag maintainer. Impacts all environments in a project.
    updateNameChange the name of a feature flag. Impacts all environments in a project.
    updateTagsUpdate tags associated with a flag. Impacts all environments in a project.
    updateTemporaryMarks a flag temporary or permanent. Impacts all environments in a project.

    Integration actions

    Expand Integration actions

    Most third-party integrations use a shared set of custom role actions.

    integration is a top-level resource. A code sample is below:

    integration/*

    To learn more, read Integrations.

    This table explains available integrations actions:

    ActionDescription
    createIntegrationCreate and configure new third-party integrations.
    deleteIntegrationDelete existing third-party integrations.
    updateConfigurationModify existing third-party integration configurations.
    updateNameChange the name of third-party integration configurations.
    updateOnEnable and disabled existing third-party integrations.
    validateConnectionValidate the third-party connection.

    Member actions

    Expand Member actions

    member is a top-level resource. A code sample is below:

    member/*

    To learn more, read LaunchDarkly account members.

    This table explains available member actions:

    ActionDescription
    createMemberAdd a new account member to an account.
    deleteMemberRemove an account member from an account.
    sendMfaRecoveryCodeSend an account member their MFA recovery code.
    sendMfaRequestSend an account member a request to enable MFA.
    updateCustomRoleUpdate an account member's custom roles.
    updateRoleUpdate an account member's built-in role.

    Metric actions

    Expand Metric actions

    metric is a child resource of projects. A code sample is below:

    proj/*:metric/*

    To learn more, read About Experimentation.

    This table explains available metric actions:

    ActionDescription
    createMetricCreate metrics.
    deleteMetricDelete metrics.
    updateDescriptionChange the description of a metric.
    updateEventKeyChange the event key for a custom metric.
    updateMaintainerChange the metric's maintainer.
    updateNameChange the name of a metric.
    updateNumericMark a custom metric as numeric or non-numeric.
    updateNumericSuccessUpdate the success criteria for a numeric custom metric.
    updateNumericUnitUpdate the unit displayed in results for a numeric custom metric.
    updateOnMark a metric as active or inactive.
    updateSelectorUpdate the CSS selector for a click conversion metric.
    updateTagsChange the tags associated with a metric.
    updateUrlsUpdate the URLs for a click conversion or page view conversion metric.

    Personal access token actions

    Expand Personal access token actions

    token is a child resource of members. A code sample is below:

    member/*:token/*

    To learn more, read API access tokens.

    This table explains available personal access token actions:

    ActionDescription
    createAccessTokenCreate a personal access token. All custom roles can take this action by default.
    deleteAccessTokenDelete a personal access token.
    resetAccessTokenReset a personal access token's secret key.
    updateAccessTokenDescriptionChange the description of a personal access token.
    updateAccessTokenNameChange the name of a personal access token.
    updateAccessTokenPolicyChange the policy filter of a personal access token.

    Project actions

    Expand Project actions

    proj is a top-level resource. A code sample is below:

    proj/*

    To learn more, read Projects.

    This table explains available project actions:

    ActionDescription
    createProjectCreate a new project.
    deleteProjectDelete a project.
    updateDefaultClientSideAvailabilityChange whether new feature flags are made available to client-side SDKs.
    updateIncludeInSnippetByDefaultMake new flags available to the client-side (JavaScript) SDK by default.
    updateProjectNameRename a project.
    updateTagsUpdate tags associated with a project.
    viewProjectView a project. All custom roles can take this action by default. If set to deny, anyone impacted by this policy can neither view nor modify a project.
    More information about viewProject

    The deny effect in the viewProject action hides the projects you specify from the member. However, the allow effect for the same resource and action pairing doesn't do anything. Your LaunchDarkly member does not need explicit permission to view the project, because all custom roles can view all projects in a LaunchDarkly instance by default.

    To learn more, read Configuring private projects with custom roles

    Relay Proxy configuration actions

    Expand Relay Proxy configuration actions

    relay-proxy-config is a top-level resource for which you can allow or deny certain actions.

    Here is an example:

    relay-proxy-config/*

    To learn more, read Automatic configuration.

    This table explains available Relay Proxy automatic configuration actions:

    ActionDescription
    createRelayAutoConfigurationCreate a Relay Proxy with automatic configuration enabled.
    deleteRelayAutoConfigurationDelete the Relay Proxy with automatic configuration enabled.
    resetRelayAutoConfigurationReset the configuration of the Relay Proxy with automatic configuration enabled.
    updateRelayAutoConfigurationNameChange the Relay Proxy with automatic configuration's name.
    updateRelayAutoConfigurationPolicyChange the policies associated with the Relay Proxy with automatic configuration.

    Role actions

    Expand Role actions

    role is a top-level resource. A code sample is below:

    role/*

    To learn more, read Custom roles.

    This table explains available role actions:

    ActionDescription
    createRoleCreate new custom roles.
    deleteRoleDelete a custom role.
    updateDescriptionUpdate a custom role's description.
    updateMembersAdd or remove members from a custom role. Equivalent to updateCustomRole on account members.
    updateNameUpdate a custom role's name.
    updatePolicyUpdate a custom role's policy.

    Segment actions

    Expand Segment actions

    segment is a child of both a project and environments. A code sample is below:

    proj/*:env/*:segment/*

    To learn more, read Segments.

    This table explains available segments actions:

    ActionDescription
    createSegmentCreate new segments.
    deleteSegmentDelete segments.
    updateDescriptionUpdate a segment's description.
    updateExcludedChange a segment's excluded contexts.
    updateExpiringRulesChange a segment's expiring custom targeting rules.
    updateExpiringTargetsChange a segment's expiring individual context targeting rules.
    updateIncludedChange a segment's included contexts.
    updateNameChange the name of a segment.
    updateRulesChange a segment's custom targeting rules.
    updateScheduledChangesChange the scheduled updates on a segment.
    updateTagsChange the tags associated with a segment.

    Service access token actions

    Expand Service access token actions

    service-token is a top-level resource. A code sample is below:

    service-token/*

    To learn more, read API access tokens.

    This table explains available service access token actions:

    ActionDescription
    createAccessTokenCreate a service access token. All custom roles can take this action by default.
    deleteAccessTokenDelete a service access token.
    resetAccessTokenReset a service access token's secret key.
    updateAccessTokenDescriptionChange the description of a service access token.
    updateAccessTokenNameChange the name of a service access token.

    Team actions

    Expand Team actions

    team is a top-level resource. A code sample is below:

    team/*

    To learn more, read Teams.

    This table explains available team actions:

    ActionDescription
    createTeamCreate a new team.
    deleteTeamDelete a team.
    updateTeamCustomRolesAdd or remove custom roles from a team.
    updateTeamDescriptionUpdate the description of a team.
    updateTeamMembersAdd or remove members to or from a team.
    updateTeamNameChange the name of a team.
    viewTeam If set to deny, anyone impacted by this policy can neither view nor modify a team.
    More information about the viewTeam action

    The deny effect for your resource in the viewTeam action hides the teams you specify from the member. The allow effect for the same resource and action pairing doesn't do anything because your account member can already view the team.

    To learn more, read Creating private teams.

    Template actions

    Expand Template actions

    template is a top-level resource. A code sample is below:

    template/*

    To learn more, read Workflow templates.

    This table explains available template actions:

    ActionDescription
    createTemplateCreate a new template.
    deleteTemplateDelete a template.
    viewTemplateIf set to deny, anyone impacted by this policy can neither view nor modify a template.

    Webhook actions

    Expand Webhook actions

    webhook is a top-level resource. A code sample is below:

    webhook/*

    To learn more, read Webhooks.

    This table explains available webhooks actions:

    ActionDescription
    createWebhookCreate new webhooks.
    deleteWebhookDelete existing webhooks.
    updateNameChange the name of webhook configurations.
    updateOnEnable and disabled existing webhooks.
    updateQueryModify webhook query.
    updateSecretModify an existing webhook's signing secret.
    updateStatementsModify webhook policy statements.
    updateTagsModify webhook tags.
    updateUrlChange the URL for a webhook.