Proxy
APIs used by the ff-proxy
Returns all the Proxy keys in an account
Account Identifier
{"value":"default"}Name of the field
SortOrder
SortByField
PageNumber
PageSize
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
5Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
GET /gateway/cf/admin/proxy/keys?accountIdentifier=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,
"proxyKeys": [
{
"createdAt": 1,
"description": "This is a proxy key for production",
"id": "31B0B299-7635-416D-9E99-CFCAA7ADABEA",
"identifier": "ProxyKeyOne",
"name": "Proxy Key One",
"updatedAt": 1
}
]
}Creates a Proxy Key in the account & org
Account Identifier
{"value":"default"}Description of the Proxy KeyProxyKeyOneProxy key oneCreated
0202f58b-d670-44ef-bd1f-323a48c28004Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
Internal server error
POST /gateway/cf/admin/proxy/keys?accountIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 567
{
"description": "A description",
"identifier": "MyProxyKey",
"name": "My Proxy Key",
"organizations": {
"org123": {
"projects": {
"project1": {
"environments": [],
"scope": "all"
},
"project2": {
"environments": [],
"scope": "prod"
},
"project3": {
"environments": [],
"scope": "non-prod"
},
"project4": {
"environments": [
"env1",
"env2",
"env3"
],
"scope": "selected"
}
}
},
"org456": {
"projects": {
"project1": {
"environments": [],
"scope": "all"
},
"project2": {
"environments": [],
"scope": "prod"
},
"project3": {
"environments": [],
"scope": "non-prod"
},
"project4": {
"environments": [
"env1",
"env2",
"env3"
],
"scope": "selected"
}
}
}
}
}{
"key": "0202f58b-d670-44ef-bd1f-323a48c28004"
}Returns a ProxyKey
Unique identifier for the object in the API.
Account Identifier
{"value":"default"}OK
The date the key was created at in milliseconds
A description of the Proxy Key
This is a proxy key for productionThe ProxyKeys ID
31B0B299-7635-416D-9E99-CFCAA7ADABEAThe Proxy Keys identifier
ProxyKeyOneThe ProxyKeys name
Proxy Key OneThe date the key was last updated at in milliseconds
The ProxyKey version
Bad request
Unauthenticated
Unauthorized
The specified resource was not found
Internal server error
GET /gateway/cf/admin/proxy/keys/{identifier}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
{
"createdAt": 1698235128877,
"description": "A description",
"id": "b56546aa-62e6-407e-bf14-63691a47b0e0",
"identifier": "MyProxyKey",
"name": "My Proxy Key",
"organizations": {
"org123": {
"projects": {
"project1": {
"environments": [],
"scope": "all"
},
"project2": {
"environments": [],
"scope": "prod"
},
"project3": {
"environments": [],
"scope": "non-prod"
},
"project4": {
"environments": [
"env1",
"env2",
"env3"
],
"scope": "selected"
}
}
},
"org456": {
"projects": {
"project1": {
"environments": [],
"scope": "all"
},
"project2": {
"environments": [],
"scope": "prod"
},
"project3": {
"environments": [],
"scope": "non-prod"
},
"project4": {
"environments": [
"env1",
"env2",
"env3"
],
"scope": "selected"
}
}
}
},
"updatedAt": 1698235128877
}Deletes a ProxyKey
Unique identifier for the object in the API.
Account Identifier
{"value":"default"}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/proxy/keys/{identifier}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Accept: */*
No content
This operation is used to modify which environments a ProxyKey has access to. The request body can include one or more instructions that can assign or unassign environmnets to the ProxyKey
Unique identifier for the object in the API.
Account Identifier
{"value":"default"}A Proxy Key instruction
Created
0202f58b-d670-44ef-bd1f-323a48c28004Bad request
Unauthenticated
Unauthorized
The specified resource was not found
The specified resource already exists
Internal server error
PATCH /gateway/cf/admin/proxy/keys/{identifier}?accountIdentifier=text HTTP/1.1
Host: app.harness.io
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 398
{
"instructions": {
"rotateKey": "12h",
"updateConfig": {
"organizations": {
"org123": {
"projects": {
"project1": {
"environments": [],
"scope": "all"
},
"project2": {
"environments": [],
"scope": "prod"
},
"project3": {
"environments": [],
"scope": "non-prod"
},
"project4": {
"environments": [
"env1",
"env2",
"env3"
],
"scope": "selected"
}
}
}
},
"version": 1
},
"updateDescription": "new proxyKey updateDescription",
"updateName": "newProxyKey"
}
}{
"key": "0202f58b-d670-44ef-bd1f-323a48c28004"
}Last updated
Was this helpful?