Altair SLC Hub Access Controller (2024.0.0)

Download OpenAPI specification:Download

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

Queries current role instances

Authorizations:
query Parameters
filter[name][EQ]
string
filter[name][CO]
string
filter[system][EQ]
boolean
filter[created][LT]
string <date-time>
filter[created][GT]
string <date-time>
filter[modified][LT]
string <date-time>
filter[modified][GT]
string <date-time>
page[offset]
integer
page[limit]
integer
sort
string
Enum: "name" "-name" "created" "-created" "modified" "-modified"

Responses

Response samples

Content type
application/json
{
  • "totalCount": 0,
  • "data": [
    ]
}

createRole

Creates a new role entity

Authorizations:
Request Body schema: application/json
id
string
created
string <date-time>
modified
string <date-time>
name
required
string
description
string
Array of objects (permission)
system
boolean

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

nameAvailability

Authorizations:
query Parameters
name
required
string

Responses

Response samples

Content type
application/json
{
  • "result": true,
  • "reason": "invalid",
  • "msg": "string"
}

Returns a specific role entity by ID

Authorizations:
path Parameters
roleId
required
string

ID of the role

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

Updates the definition of a role

Authorizations:
path Parameters
roleId
required
string

ID of the role

Request Body schema: application/json
id
string
created
string <date-time>
modified
string <date-time>
name
required
string
description
string
Array of objects (permission)
system
boolean

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

Updates the definition of a role using JSON Patch

Authorizations:
path Parameters
roleId
required
string

ID of the role

Request Body schema: application/json-patch+json
Array ()
op
required
string
Enum: "add" "remove" "replace"

The operation to be performed

path
required
string

A JSON-Pointer

value
any

The value to be used within the operations.

Responses

Request samples

Content type
application/json-patch+json
[
  • {
    }
]

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "modified": "2019-08-24T14:15:22Z",
  • "name": "string",
  • "description": "string",
  • "permissions": [
    ],
  • "system": true
}

Deletes a specific role by ID

Authorizations:
path Parameters
roleId
required
string

ID of the role

Responses

Response samples

Content type
application/json
{
  • "msg": "string"
}

Queries current role bindings

Authorizations:
query Parameters
filter[role][EQ]
string

filter by the ID of the role

filter[principal][EQ]
string

filter by the ID of the principal

filter[principal][IN]
string

filter by the ID of the principal matching one of a comma separated list

page[offset]
integer
page[limit]
integer
sort
string
Enum: "role" "-role" "principal" "-principal" "created" "-created"

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "totalCount": 0,
  • "roles": {
    }
}

createRoleBinding

Creates a new role binding

Authorizations:
Request Body schema: application/json
id
string
created
string <date-time>
role
required
string
principal
required
string
namespace
required
string

Responses

Request samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "role": "string",
  • "principal": "string",
  • "namespace": "string"
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "created": "2019-08-24T14:15:22Z",
  • "role": "string",
  • "principal": "string",
  • "namespace": "string"
}

Deletes role bindings

Authorizations:
query Parameters
filter[role][EQ]
string

deletes by the ID of the role

filter[namespace][EQ]
string

deletes by the namespace of the binding

filter[principal][EQ]
string

deletes by the ID of the principal

Responses

Response samples

Content type
application/json
{
  • "count": 0
}

Deletes a specific role binding by ID

Authorizations:
path Parameters
roleBindingId
required
string

ID of the role binding

Responses

Response samples

Content type
application/json
{
  • "msg": "string"
}

evaluateAccessControl

Evaluates access control for the current user

Authorizations:
Request Body schema: application/json
Array ()
object
required
string
action
required
string
namespace
string

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • "Allow"
]

explainAccessControl

Evaluates access control for the given user and returns an explanation of the result

Authorizations:
Request Body schema: application/json
Array ()
user
required
string
groups
Array of strings
object
required
string
action
required
string
namespace
string

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • {
    }
]

queryDecisionLog

Authorizations:
query Parameters
filter[userId][EQ]
string
filter[object][EQ]
string
filter[object][SW]
string
filter[action][EQ]
string
filter[namespace][EQ]
string
filter[decision][EQ]
string (effect)
Enum: "Allow" "Deny"
filter[purpose][EQ]
string (purpose)
Enum: "Request" "Filter"
filter[when][LT]
string <date-time>
filter[when][GT]
string <date-time>
page[limit]
integer
page[offset]
integer
sort
string
Enum: "object" "-object" "when" "-when"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

queryDecisionLogDistinct

Authorizations:
query Parameters
filter[value][SW]
string
page[limit]
integer
page[offset]
integer
field
string
Enum: "object" "action"

Responses

Response samples

Content type
application/json
[
  • "string"
]