Grant gives subjects one account on many servers, the servers by id or by tag. It is one transaction and one access change, however many servers.
https://app.nokku.sh/nokku.v1.TargetAccountService/GrantTry it
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Authorization
BearerAuth (bearer)
A service account token. Include it in the Authorization header: `Authorization: Bearer <token>`
CookieAuth (cookie: __Host-nokku_session)
The session cookie the web app uses. Browsers send it after sign-in. Only on `localhost` it is named `nokku_session`.
Request Body
Requiredapplication/json
grantWho gets which account where. A server counts when its id is named or it has one of the tags.
subjects?targetIds?tags?username?Empty asks only which servers these are and what accounts they have.
expiresAt?Unset is for good.
changeEnds?A grant that stands with another end keeps it, unless this is set.
Responses
200Success
200Success
application/json
plan?What it did.
servers?Servers the ids and tags name.
serverNames?Some of their names, to show which they are.
accounts?The accounts those servers have, the most common first.
withAccount?Servers that have the account asked for.
skipped?Some of the servers that lack it. Nothing happens there.
outcomes?defaultError
defaultError
application/json
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
code?The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
message?A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details?A list of messages that carry the error details. There is no limit on the number of messages.