Attributes
APIS to create and manage Target Group Attributes
Returns all the custom attributes the given environment
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
PageNumber
PageSize
SortOrder
Returns only custom attributes
Returns attribute
OK
A list of Attributes
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/attributes?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,
"attributes": [
{
"key": "age"
}
]
}Creates a custom attribute for given environment
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
An Attribute, object property to evaluate targets on.
The attribute key
ageOK
Bad request
Unauthenticated
Unauthorized
The specified resource already exists
Internal server error
POST /gateway/cf/admin/attributes?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&environmentIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"key": "age"
}{
"details": {
"governanceMetadata": {}
}
}Returns Attribute
Unique key for the attribute in the API.
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
OK
An Attribute, object property to evaluate targets on.
The attribute key
ageUnauthenticated
Unauthorized
The specified resource was not found
Internal server error
GET /gateway/cf/admin/attributes/{key}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&environmentIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"key": "age"
}Delete an Attribute for the given key and environmentID
Unique key for the attribute in the API.
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
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/attributes/{key}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&environmentIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
No content
Updates Attribute key details for the given environment
Unique key for the attribute in the API.
Account Identifier
{"value":"default"}Organization Identifier
{"value":"default_org"}The Project identifier
Environment Identifier
A comment explaining the reason for this patch operation
This is a comment stringTime of execution in unix epoch milliseconds when the scheduled changes will be applied
OK
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
PATCH /gateway/cf/admin/attributes/{key}?accountIdentifier=text&orgIdentifier=text&projectIdentifier=text&environmentIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"instructions": [
{
"kind": "updateAttribute",
"parameters": {
"key": "Updated attributeKey"
}
}
]
}{
"details": {
"governanceMetadata": {}
}
}Last updated
Was this helpful?