launchdarkly_variation_info – Return value from Feature Flag Evaluation¶
New in version 0.2.0.
Parameters¶
Parameter | Choices/Defaults | Comments |
---|---|---|
flag_key
string
|
Display name for the environment.
|
|
sdk_key
string
/ required
|
Default: "default"
|
Environment SDK key for evaluation to run against. May be set as
LAUNCHDARKLY_SDK_KEY environment variable. |
start_wait
integer
/ required
|
Default: 5
|
How long to wait for the SDK to connect to LaunchDarkly.
|
user
dictionary
|
A list of Environments to create. Cannot be updated with this resource.
|
Examples¶
# Create a new LaunchDarkly Project with tags
- launchdarkly_variation_info:
sdk_key: sdk-12345
start_wait: 10
flag_key: example-test-flag
user:
key: aabbccdd
custom:
test-attribute: green
plan: free
Return Values¶
Common return values are documented here, the following are the fields unique to this :
Key | Returned | Description |
---|---|---|
is_default_value
boolean
|
always |
Is it the default value in code.
|
reason
dictionary
|
always |
Why was that specific value returned.
|
type
string
|
always |
Type of return value
|
value
-
|
always |
Value returned from variation. Type is set in
type return. |
variation_index
integer
|
always |
Index value of variation.
|
Status¶
This is not guaranteed to have a backwards compatible interface. [preview]
This is maintained by the Ansible Community. [community]
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
Hint
Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.