Skip to main content

sharegroup_members

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

Overview

Namesharegroup_members
TypeResource
Idlinode.images.sharegroup_members

Fields

The following fields are returned by SELECT queries:

A single token object.

NameDatatypeDescription
createdstring (date-time)Read-only When the user became the share group's member. (example: 2025-08-04T10:07:59)
expirystring (date-time)Read-only When the user's share group membership expires.
labelstringThe share group member's descriptive name. (example: Engineering - Backend)
statusstringRead-only The current membership status. Share group members can be active or revoked. Revoked members' data remains available for two weeks after they left a share group. (active, revoked) (example: active)
token_uuidstringRead-only The membership token's unique identifier. Not to be confused with the token needed to add a member to the share group. (example: 4591075e-4ba8-43c9-a521-928c3d4a135d)
updatedstring (date-time)Read-only When the user's share group membership was last updated.

Methods

The following methods are available for this resource:

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

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Get the token_uuid from the user who wants to join your share group or run the List members by share group operation for details on current group members.

- To get details about a token as a current or pending group member, run the Get a token operation.

Learn more...

Learn more...
listselectsharegroupIdGet the details about all members in a particular share group you own.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

Learn more...

Learn more...
createinsertsharegroupId, token, labelAdds users to existing shared private image groups as a group owner.

- Adding new members to share groups requires a single-use token. The user who wants to join a share group should run Create a token and share the token from the response with the group owner.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

Learn more...

Learn more...
updatereplacesharegroupId, tokenUuid, labelUpdates an existing membership token for a group owner. You can change each token's label that will be visible only to you, such as when you Get members by share group.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Run the List members by share group operation to get the token_uuid for a current group member.

Learn more...

Learn more...
deletedeletesharegroupId, tokenUuidRevokes a membership token accepted into a share group. Members with revoked status immediately lose access to shared images, and can't deploy them anymore.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Run the List members by share group operation to get the token_uuid for a current group member. After revoking a membership, you can run this operation to check its status.

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
sharegroupIdstringThe share group's unique identifier assigned after creating it. Not to be confused with the group's uuid.
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 owner. Run this operation to check the status of a pending membership request or a current group member.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Get the token_uuid from the user who wants to join your share group or run the List members by share group operation for details on current group members.

- To get details about a token as a current or pending group member, run the Get a token operation.

Learn more...

Learn more...

SELECT
created,
expiry,
label,
status,
token_uuid,
updated
FROM linode.images.sharegroup_members
WHERE sharegroupId = '{{ sharegroupId }}' -- required
AND tokenUuid = '{{ tokenUuid }}' -- required
;

INSERT examples

Adds users to existing shared private image groups as a group owner.

- Adding new members to share groups requires a single-use token. The user who wants to join a share group should run Create a token and share the token from the response with the group owner.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

Learn more...

Learn more...

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

REPLACE examples

Updates an existing membership token for a group owner. You can change each token's label that will be visible only to you, such as when you Get members by share group.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Run the List members by share group operation to get the token_uuid for a current group member.

Learn more...

Learn more...

REPLACE linode.images.sharegroup_members
SET
label = '{{ label }}'
WHERE
sharegroupId = '{{ sharegroupId }}' --required
AND tokenUuid = '{{ tokenUuid }}' --required
AND label = '{{ label }}' --required
RETURNING
created,
expiry,
label,
status,
token_uuid,
updated;

DELETE examples

Revokes a membership token accepted into a share group. Members with revoked status immediately lose access to shared images, and can't deploy them anymore.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group.

- Run the List members by share group operation to get the token_uuid for a current group member. After revoking a membership, you can run this operation to check its status.

Learn more...

Learn more...

DELETE FROM linode.images.sharegroup_members
WHERE sharegroupId = '{{ sharegroupId }}' --required
AND tokenUuid = '{{ tokenUuid }}' --required
;