Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Proxy

APIs used by the ff-proxy

Returns all Proxy keys in an account

get

Returns all the Proxy keys in an account

Authorizations
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier

Example: {"value":"default"}
namestringOptional

Name of the field

sortOrderstring · enumOptional

SortOrder

Possible values:
sortByFieldstring · enumOptional

SortByField

Possible values:
pageNumberintegerOptional

PageNumber

pageSizeintegerOptional

PageSize

Responses
200

OK

application/json
itemCountintegerRequired

The total number of items

Example: 1
pageCountintegerRequired

The total number of pages

Example: 100
pageIndexintegerRequired

The current page

Example: 0
pageSizeintegerRequired

The number of items per page

Example: 1
versionintegerOptional

The version of this object. The version will be incremented each time the object is modified

Example: 5
get/admin/proxy/keys
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

post

Creates a Proxy Key in the account & org

Authorizations
x-api-keystringRequired
Query parameters
accountIdentifierstringRequired

Account Identifier

Example: {"value":"default"}
Body
descriptionstringOptionalExample: Description of the Proxy Key
identifierstringRequiredExample: ProxyKeyOne
namestringRequiredExample: Proxy key one
Responses
201

Created

application/json
keystringOptionalExample: 0202f58b-d670-44ef-bd1f-323a48c28004
post/admin/proxy/keys
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

get

Returns a ProxyKey

Authorizations
x-api-keystringRequired
Path parameters
identifierstringRequired

Unique identifier for the object in the API.

Query parameters
accountIdentifierstringRequired

Account Identifier

Example: {"value":"default"}
Responses
200

OK

application/json
createdAtinteger · int64Required

The date the key was created at in milliseconds

descriptionstringRequired

A description of the Proxy Key

Example: This is a proxy key for production
idstringRequired

The ProxyKeys ID

Example: 31B0B299-7635-416D-9E99-CFCAA7ADABEA
identifierstringRequired

The Proxy Keys identifier

Example: ProxyKeyOne
namestringRequired

The ProxyKeys name

Example: Proxy Key One
updatedAtinteger · int64Required

The date the key was last updated at in milliseconds

versioninteger · intRequired

The ProxyKey version

get/admin/proxy/keys/{identifier}
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

delete

Deletes a ProxyKey

Authorizations
x-api-keystringRequired
Path parameters
identifierstringRequired

Unique identifier for the object in the API.

Query parameters
accountIdentifierstringRequired

Account Identifier

Example: {"value":"default"}
Responses
204

No content

No content

delete/admin/proxy/keys/{identifier}
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

Updates a Proxy Key in the account & org

patch

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

Authorizations
x-api-keystringRequired
Path parameters
identifierstringRequired

Unique identifier for the object in the API.

Query parameters
accountIdentifierstringRequired

Account Identifier

Example: {"value":"default"}
Body

A Proxy Key instruction

Responses
200

Created

application/json
keystringOptionalExample: 0202f58b-d670-44ef-bd1f-323a48c28004
patch/admin/proxy/keys/{identifier}
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?