curl --url http://localhost:8080/client/v2/environments/production/namespaces/default/snapshot \
--header 'Accept: application/json'
{
"namespace": {
"key": "<string>"
},
"flags": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"type": "VARIANT_FLAG_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"rules": [
{
"id": "<string>",
"segments": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"matchType": "ALL_SEGMENT_MATCH_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"type": "UNKNOWN_CONSTRAINT_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>"
}
]
}
],
"rank": 123,
"segmentOperator": "OR_SEGMENT_OPERATOR",
"distributions": [
{
"ruleId": "<string>",
"variantKey": "<string>",
"variantAttachment": "<string>",
"rollout": 123
}
]
}
],
"rollouts": [
{
"type": "UNKNOWN_ROLLOUT_TYPE",
"rank": 123,
"segment": {
"value": true,
"segmentOperator": "OR_SEGMENT_OPERATOR",
"segments": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"matchType": "ALL_SEGMENT_MATCH_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"type": "UNKNOWN_CONSTRAINT_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>"
}
]
}
]
},
"threshold": {
"percentage": 123,
"value": true
}
}
],
"defaultVariant": {
"id": "<string>",
"key": "<string>",
"attachment": "<string>"
}
}
],
"digest": "<string>"
}Evaluation
Namespace Snapshot
Get a snapshot of all flag evaluation state for a namespace.
GET
/
client
/
v2
/
environments
/
{environmentKey}
/
namespaces
/
{key}
/
snapshot
curl --url http://localhost:8080/client/v2/environments/production/namespaces/default/snapshot \
--header 'Accept: application/json'
{
"namespace": {
"key": "<string>"
},
"flags": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"type": "VARIANT_FLAG_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"rules": [
{
"id": "<string>",
"segments": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"matchType": "ALL_SEGMENT_MATCH_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"type": "UNKNOWN_CONSTRAINT_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>"
}
]
}
],
"rank": 123,
"segmentOperator": "OR_SEGMENT_OPERATOR",
"distributions": [
{
"ruleId": "<string>",
"variantKey": "<string>",
"variantAttachment": "<string>",
"rollout": 123
}
]
}
],
"rollouts": [
{
"type": "UNKNOWN_ROLLOUT_TYPE",
"rank": 123,
"segment": {
"value": true,
"segmentOperator": "OR_SEGMENT_OPERATOR",
"segments": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"matchType": "ALL_SEGMENT_MATCH_TYPE",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"constraints": [
{
"type": "UNKNOWN_CONSTRAINT_COMPARISON_TYPE",
"property": "<string>",
"operator": "<string>",
"value": "<string>"
}
]
}
]
},
"threshold": {
"percentage": 123,
"value": true
}
}
],
"defaultVariant": {
"id": "<string>",
"key": "<string>",
"attachment": "<string>"
}
}
],
"digest": "<string>"
}curl --url http://localhost:8080/client/v2/environments/production/namespaces/default/snapshot \
--header 'Accept: application/json'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Was this page helpful?