curl --url http://localhost:8080/api/v2/environments/production/namespaces/default/resources/flipt.core.Flag \
--header 'Accept: application/json'
{
"resources": [
{
"namespaceKey": "<string>",
"key": "<string>",
"payload": {
"@type": "flipt.core.Flag",
"key": "<string>",
"type": "VARIANT_FLAG_TYPE",
"name": "<string>",
"description": "<string>",
"enabled": true,
"variants": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"attachment": "<unknown>"
}
],
"rules": [
{
"segmentOperator": "OR_SEGMENT_OPERATOR",
"segments": [
"<string>"
],
"distributions": [
{
"variant": "<string>",
"rollout": 123
}
]
}
],
"rollouts": [
{
"type": "UNKNOWN_ROLLOUT_TYPE",
"description": "<string>",
"segment": {
"value": true,
"segments": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
},
"threshold": {
"percentage": 123,
"value": true
}
}
],
"defaultVariant": "<string>",
"metadata": {}
}
}
],
"revision": "<string>"
}Flags
List Flags
List all flags in a namespace.
GET
/
api
/
v2
/
environments
/
{environmentKey}
/
namespaces
/
{namespaceKey}
/
resources
/
{typeUrl}
curl --url http://localhost:8080/api/v2/environments/production/namespaces/default/resources/flipt.core.Flag \
--header 'Accept: application/json'
{
"resources": [
{
"namespaceKey": "<string>",
"key": "<string>",
"payload": {
"@type": "flipt.core.Flag",
"key": "<string>",
"type": "VARIANT_FLAG_TYPE",
"name": "<string>",
"description": "<string>",
"enabled": true,
"variants": [
{
"key": "<string>",
"name": "<string>",
"description": "<string>",
"attachment": "<unknown>"
}
],
"rules": [
{
"segmentOperator": "OR_SEGMENT_OPERATOR",
"segments": [
"<string>"
],
"distributions": [
{
"variant": "<string>",
"rollout": 123
}
]
}
],
"rollouts": [
{
"type": "UNKNOWN_ROLLOUT_TYPE",
"description": "<string>",
"segment": {
"value": true,
"segments": [
"<string>"
],
"segmentOperator": "OR_SEGMENT_OPERATOR"
},
"threshold": {
"percentage": 123,
"value": true
}
}
],
"defaultVariant": "<string>",
"metadata": {}
}
}
],
"revision": "<string>"
}curl --url http://localhost:8080/api/v2/environments/production/namespaces/default/resources/flipt.core.Flag \
--header 'Accept: application/json'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The environment identifier, e.g. 'production'.
The namespace key for which to list resources, e.g. 'default'.
The resource type - flipt.core.Flag or flipt.core.Segment.
Was this page helpful?