Tags
APIs to create and manage Feature Flag Tags
Returns all the Tags for the given Account ID
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
PageNumber
PageSize
SortOrder
SortByField
Partial Search of Tag Identifiers to filter on
OK
The total number of items
1The total number of pages
100The current page
0The number of items per page
1The version of this object. The version will be incremented each time the object is modified
5Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
GET /gateway/cf/admin/tags?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&environmentIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"itemCount": 1,
"pageCount": 100,
"pageIndex": 0,
"pageSize": 1,
"version": 5,
"tags": [
{
"identifier": "feature-flag-tag-1",
"name": "feature-flag-tag-1"
}
]
}Create Tags for the given identifier
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
A Tag object used to tag feature flags - consists of name and identifier
The identifier of the tag
feature-flag-tag-1The name of the tag
feature-flag-tag-1OK
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
Internal server error
POST /gateway/cf/admin/tags?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"identifier": "feature-flag-tag-1",
"name": "feature-flag-tag-1"
}{
"details": {
"governanceMetadata": {}
}
}Returns details such as identifier,Associated Feature Flag etc for the given Tag
Unique identifier for the object in the API.
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment
Parameter to indicate if metrics data is requested in response
Status of the feature flag
OK
A Feature Flag response
Indicates if the flag has been archived and is no longer used
falseThe date the flag was created in milliseconds
The default value returned when a flag is off
trueThe default value returned when a flag is on
trueA description for this flag
A flag to control a new feature in productionThe value that the flag will return for the current user
trueThe identifier for the returned evaluation
on-variationThe Feature Flag identifier
bool-flagThe type of Feature flag
booleanPossible values: The date the flag was last modified in milliseconds
The name of the Feature Flag
My Boolean FlagThe user who created the flag
johndoeIndicates if this is a permanent flag, or one that should expire
trueThe project this Feature belongs to
test-projectWhether the flag is stale or not
falseThe reason that the flag was marked as stale
matched-criteriaUnauthenticated
Unauthorized
The specified resource was not found
Internal server error
GET /gateway/cf/admin/tags/{identifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"archived": false,
"createdAt": 1,
"defaultOffVariation": true,
"defaultOnVariation": true,
"description": "A flag to control a new feature in production",
"envProperties": {
"ccm": {
"anomalies": [
{
"acknowledgedAt": 0,
"anomalyId": "123456",
"costDifference": 123,
"createdAt": 0,
"foundAt": 0,
"isAcknowledged": false,
"status": "found"
}
],
"perspectiveIdentifier": "123456",
"perspectiveName": "myCluster"
},
"defaultServe": {
"distribution": {
"bucketBy": "text",
"variations": [
{
"variation": "off-variation",
"weight": 50
}
]
},
"variation": "text"
},
"environment": "text",
"jiraEnabled": true,
"jiraIssues": [
{
"issueKey": "FFM-7777",
"issueURL": "https://harness-dev1.atlassian.net"
}
],
"modifiedAt": 1,
"offVariation": "text",
"pipelineConfigured": true,
"pipelineDetails": {
"createdAt": 1,
"description": "text",
"identifier": "text",
"lastUpdatedAt": 1,
"name": "text"
},
"pipelineErrorReason": "text",
"pipelineErrorState": true,
"rules": [
{
"clauses": [
{
"attribute": "identifier",
"id": 32434243,
"negate": false,
"op": "starts_with",
"values": [
"text"
]
}
],
"priority": 1,
"ruleId": "text",
"serve": {
"distribution": {
"bucketBy": "text",
"variations": [
{
"variation": "off-variation",
"weight": 50
}
]
},
"variation": "text"
}
}
],
"state": "on",
"variationMap": [
{
"targetSegments": [
"text"
],
"targets": [
{
"identifier": "text",
"name": "text"
}
],
"variation": "off-variation"
}
],
"version": 1
},
"evaluation": true,
"evaluationIdentifier": "on-variation",
"identifier": "bool-flag",
"kind": "boolean",
"modifiedAt": 1,
"name": "My Boolean Flag",
"owner": "johndoe",
"permanent": true,
"prerequisites": [
{
"feature": "text",
"variations": [
"text"
]
}
],
"project": "test-project",
"results": [
{
"count": 1,
"variationIdentifier": "defaultOnVariation",
"variationName": "Default On Variation"
}
],
"services": [
{
"identifier": "text",
"name": "text"
}
],
"stale": false,
"staleReason": "matched-criteria",
"tags": [
{
"identifier": "feature-flag-tag-1",
"name": "feature-flag-tag-1"
}
],
"variations": [
{
"description": "text",
"identifier": "off-variation",
"name": "Off VAriation",
"value": "true"
}
]
}Delete Tag for the given identifier and account ID
Unique identifier for the object in the API.
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Git commit message
Permanently deletes the the feature flag
No content
No content
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
An error with git syncing
Internal server error
DELETE /gateway/cf/admin/tags/{identifier}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?