Skip to main content

UserApiKey

Resource UserApiKey in pulumi-portainer.
2 min read

Resource UserApiKey in pulumi-portainer.

Pulumi type: portainer:index/userApiKey:UserApiKey.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
descriptionstringyesDescription of the key, shown in Portainer's user settings. Portainer requires it to be unique per user.
passwordstringyesPassword of the user the key is generated for. Portainer requires it to authorize the request; it is not stored on the key itself.
userApiKeyIdstringno
userIdnumberyesIdentifier of the user the API key belongs to.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
dateCreatednumberyesUnix timestamp at which the key was created.
descriptionstringnoDescription of the key, shown in Portainer's user settings. Portainer requires it to be unique per user.
lastUsednumberyesUnix timestamp of the key's last use, zero when it has never been used.
passwordstringnoPassword of the user the key is generated for. Portainer requires it to authorize the request; it is not stored on the key itself.
prefixstringyesNon-secret prefix of the key, which is what Portainer displays to identify it.
rawApiKeystringyesThe generated API key. Portainer returns it exactly once, at creation, so it is only ever available from the state written by that apply.
userApiKeyIdstringno
userIdnumbernoIdentifier of the user the API key belongs to.