v13

latestOpenAPI 3.0.0zlibraw.githubusercontent.com2026-08-01265409652.5 KB
resource_controls

Create a new resource control

Create a new resource control to restrict access to a Docker resource. Access policy: administrator

post/resource_controls

Request body

AdministratorsOnlyboolean

Permit access to resource only to admins

Publicboolean

Permit access to the associated resource to any user

ResourceIDstring required
SubResourceIDsstring[]

List of Docker resources that will inherit this access control

Teamsinteger[]

List of team identifiers with access to the associated resource

Type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 required
Usersinteger[]

List of user identifiers with access to the associated resource

Example request

{
  "AdministratorsOnly": true,
  "Public": true,
  "ResourceID": "617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08",
  "SubResourceIDs": [
    "617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08"
  ],
  "Teams": [
    56,
    7
  ],
  "Users": [
    1,
    4
  ]
}

Response

Success

AccessLevel0 | 1
AdministratorsOnlyboolean

Permit access to resource only to admins

Idinteger

ResourceControl Identifier

OwnerIdinteger

Deprecated fields Deprecated in DBVersion == 2

Publicboolean

Permit access to the associated resource to any user

ResourceIdstring

Docker resource identifier on which access control will be applied.
In the case of a resource control applied to a stack, use the stack name as identifier

SubResourceIdsstring[]

List of Docker resources that will inherit this access control

Systemboolean
Type0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Example response

{
  "AdministratorsOnly": true,
  "Id": 1,
  "Public": true,
  "ResourceId": "617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08",
  "SubResourceIds": [
    "617c5f22bb9b023d6daab7cba43a57576f83492867bc767d1c59416b065e5f08"
  ]
}