Access rules provide user authorization to system resources and entities. It is managed using Role-based access control (RBAC) which is a policy-neutral access control mechanism defined around roles and privileges. The components of RBAC make it simple to manage access to system resources and entities. For more information, see Access control.
Use to bind a predefined role to a subject (user, group or application) in a scope.
The access rule to create.
Created
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "subjectId": "user@run.ai",
- "subjectType": "user",
- "roleId": 53142648,
- "scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "scopeType": "system",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210"
}
{- "subjectId": "user@run.ai",
- "subjectType": "user",
- "roleId": 53142648,
- "scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "scopeType": "system",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "roleName": "admin",
- "scopeName": "tenant-x",
- "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "tenantId": 1001,
- "createdBy": "user@run.ai"
}
Retrieve a list of access rules.
Executed successfully.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "totalRecords": 1,
- "displayRecords": 1,
- "accessRules": [
- {
- "subjectId": "user@run.ai",
- "subjectType": "user",
- "roleId": 53142648,
- "scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "scopeType": "system",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "roleName": "admin",
- "scopeName": "tenant-x",
- "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "tenantId": 1001,
- "createdBy": "user@run.ai"
}
]
}
Use to retrieve the details of an access rule by id.
Executed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "subjectId": "user@run.ai",
- "subjectType": "user",
- "roleId": 53142648,
- "scopeId": "a418ed33-9399-48c0-a890-122cadd13bfd",
- "scopeType": "system",
- "clusterId": "71f69d83-ba66-4822-adf5-55ce55efd210",
- "roleName": "admin",
- "scopeName": "tenant-x",
- "id": 32,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "deletedAt": "2019-08-24T14:15:22Z",
- "tenantId": 1001,
- "createdBy": "user@run.ai",
- "scopePath": "runai/production-cluster/dep-42/prj-73"
}
Use to delete the subject permissions assigned by access rule id.
No Content.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
{- "code": 401,
- "message": "Issuer is not familiar."
}
Use to retrieve the number of access rules.
Executed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
{- "count": 1
}