Skip to main content

sharegroup_tokens

Creates, updates, deletes, gets or lists a sharegroup_tokens resource.

Overview

Namesharegroup_tokens
TypeResource
Idlinode.images.sharegroup_tokens

Fields

The following fields are returned by SELECT queries:

A single token object.

NameDatatypeDescription
createdstring (date-time)Read-only When this token was created. (example: 2025-08-04T10:09:09)
expirystring (date-time)Read-only When this token expires.
labelstringA short description of the token. (example: Backend Services - Engineering)
sharegroup_labelstringRead-only The share group's descriptive name. (example: DevOps Base Images)
sharegroup_uuidstringRead-only The share group's unique identifier. (example: e1d0e58b-f89f-4237-84ab-b82077342359)
statusstringRead-only Represents the current token status. - pending: The token has been created but is not yet active. - active: The token is currently active and usable. - revoked: The token has been deleted and is no longer valid. - expired: The token has passed its validity period and is no longer usable. (pending, active, revoked, expired) (example: active)
token_uuidstringRead-only A unique identifier for the token, used to reference it after creation. (example: 13428362-5458-4dad-b14b-8d0d4d648f8c)
updatedstring (date-time)Read-only When this token was last updated.
valid_for_sharegroup_uuidstringRead-only The unique identifier of the share group you created a token for. (example: e1d0e58b-f89f-4237-84ab-b82077342359)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselecttokenUuidGet details about a membership token as a share group member. Run this operation to check the status of a pending membership request or your current group membership.

- To get the token_uuid, run the List tokens or Create a token operation to generate one for the share group you want to join.

Learn more...

Learn more...
listselectGet details about all the user's tokens.

Learn more...

Learn more...
createinsertvalid_for_sharegroup_uuidCreates a single-use membership token for users who want to join a share group with custom images.

- Before creating a token, get the share group's UUID from its owner. The owner can run List share groups or Get a share group to get the group's UUID. If needed, Create a share group and share the UUID with the user.

- Share the token from the response with the share group owner. The owner can later use the token to Add members to a share group and manage the users' membership within the group.

Learn more...

Learn more...
updatereplacetokenUuid, labelUpdates the label of an existing membership token for a share group member or a pending membership.

To get the token_uuid, run the List tokens or Create a token operation to generate one for the share group you want to join.

Learn more...

Learn more...
deletedeletetokenUuidRemoves an existing membership token for a share group member or a pending membership.

- To get the token_uuid, run the List tokens operation.

Learn more...

Learn more...

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
tokenUuidstring (uuid)A unique identifier for the token, used to reference it after creation.

SELECT examples

Get details about a membership token as a share group member. Run this operation to check the status of a pending membership request or your current group membership.

- To get the token_uuid, run the List tokens or Create a token operation to generate one for the share group you want to join.

Learn more...

Learn more...

SELECT
created,
expiry,
label,
sharegroup_label,
sharegroup_uuid,
status,
token_uuid,
updated,
valid_for_sharegroup_uuid
FROM linode.images.sharegroup_tokens
WHERE tokenUuid = '{{ tokenUuid }}' -- required
;

INSERT examples

Creates a single-use membership token for users who want to join a share group with custom images.

- Before creating a token, get the share group's UUID from its owner. The owner can run List share groups or Get a share group to get the group's UUID. If needed, Create a share group and share the UUID with the user.

- Share the token from the response with the share group owner. The owner can later use the token to Add members to a share group and manage the users' membership within the group.

Learn more...

Learn more...

INSERT INTO linode.images.sharegroup_tokens (
label,
valid_for_sharegroup_uuid
)
SELECT
'{{ label }}',
'{{ valid_for_sharegroup_uuid }}' /* required */
RETURNING
created,
expiry,
label,
sharegroup_label,
sharegroup_uuid,
status,
token,
token_uuid,
updated,
valid_for_sharegroup_uuid
;

REPLACE examples

Updates the label of an existing membership token for a share group member or a pending membership.

To get the token_uuid, run the List tokens or Create a token operation to generate one for the share group you want to join.

Learn more...

Learn more...

REPLACE linode.images.sharegroup_tokens
SET
label = '{{ label }}'
WHERE
tokenUuid = '{{ tokenUuid }}' --required
AND label = '{{ label }}' --required
RETURNING
created,
expiry,
label,
sharegroup_label,
sharegroup_uuid,
status,
token_uuid,
updated,
valid_for_sharegroup_uuid;

DELETE examples

Removes an existing membership token for a share group member or a pending membership.

- To get the token_uuid, run the List tokens operation.

Learn more...

Learn more...

DELETE FROM linode.images.sharegroup_tokens
WHERE tokenUuid = '{{ tokenUuid }}' --required
;