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

Access Control List

This contains the APIs to perform access control checks

Check Permission

post

Check for permission on resource(s) for a principal

Body
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/acl
POST /gateway/authz/api/acl HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Content-Type: application/json
Accept: */*
Content-Length: 333

{
  "permissions": [
    {
      "resourceScope": {
        "accountIdentifier": "text",
        "orgIdentifier": "text",
        "projectIdentifier": "text"
      },
      "resourceType": "text",
      "resourceAttributes": {
        "ANY_ADDITIONAL_PROPERTY": "text"
      },
      "resourceIdentifier": "text",
      "permission": "text"
    }
  ],
  "principal": {
    "principalIdentifier": "text",
    "principalType": "USER",
    "principalUniqueId": "text"
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Get ACL Count

get

Returns the total number of ACL entries for the given scope

Query parameters
accountIdentifierstring · min: 1Required
orgIdentifierstringOptional
projectIdentifierstringOptional
Responses
400

Bad Request

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/acl/get-acl-count
GET /gateway/authz/api/acl/get-acl-count?accountIdentifier=text HTTP/1.1
Host: access-control-79894d6ccb-ltplk
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?