Access Control List
This contains the APIs to perform access control checks
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
500
Internal server error
default
Result of the access check request
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"
}
]
}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
500
Internal server error
default
Count of ACLs for given scope
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?