Skip to content
Nokku LogoNokku
API Referencev1.0.0 · 174 endpoints

nokku.v1.GrantSpec

object

Who gets which account where. A server counts when its id is named or it has one of the tags.

nokku.v1.GrantSpec
subjects?
array<nokku.v1.GrantSubject>
targetIds?
array<string>
tags?
array<string>
username?
string

Empty asks only which servers these are and what accounts they have.

expiresAt?
string <date-time>

Unset is for good.

changeEnds?
boolean

A grant that stands with another end keeps it, unless this is set.

Example

{
  "subjects": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "kind": "SUBJECT_KIND_UNSPECIFIED"
    }
  ],
  "targetIds": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ],
  "tags": [
    "string"
  ],
  "username": "string",
  "expiresAt": "2023-01-15T01:30:15.01Z",
  "changeEnds": true
}