Welcome to the new Golem Cloud Docs! 👋
API Security

Api Security API

Get all security-schemes of the environment

PathMethodProtected
/v1/envs/{environment_id}/security-schemesGETYes

Example Response JSON

{
  "values": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "revision": 0,
      "name": "string",
      "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
      "providerType": "google",
      "clientId": "string",
      "redirectUrl": "string",
      "scopes": [
        "string"
      ]
    }
  ]
}

Create a new security scheme

PathMethodProtected
/v1/envs/{environment_id}/security-schemesPOSTYes

Example Request JSON

{
  "name": "string",
  "providerType": "google",
  "clientId": "string",
  "clientSecret": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "name": "string",
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "providerType": "google",
  "clientId": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Get security scheme

PathMethodProtected
/v1/security-schemes/{security_scheme_id}GETYes

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "name": "string",
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "providerType": "google",
  "clientId": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Delete security scheme

PathMethodProtected
/v1/security-schemes/{security_scheme_id}DELETEYes

Query Parameters

NameTypeRequiredDescription
current_revisionintegerYes-

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "name": "string",
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "providerType": "google",
  "clientId": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Update security scheme

PathMethodProtected
/v1/security-schemes/{security_scheme_id}PATCHYes

Example Request JSON

{
  "currentRevision": 0,
  "providerType": "google",
  "clientId": "string",
  "clientSecret": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Example Response JSON

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "revision": 0,
  "name": "string",
  "environmentId": "19f5cc2e-7657-437a-9268-83cd3d563563",
  "providerType": "google",
  "clientId": "string",
  "redirectUrl": "string",
  "scopes": [
    "string"
  ]
}

Api Security API Errors

Status CodeDescriptionBody
400Invalid request, returning with a list of issues detected in the request{"errors":["string"]}
401Unauthorized request{"error":"string"}
403Forbidden Request{"error":"string"}
404Entity not found{"error":"string"}
409{"error":"string"}
422Limits of the plan exceeded{"error":"string"}
500Internal server error{"error":"string"}