Skip to main content

sharegroup_images

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

Overview

Namesharegroup_images
TypeResource
Idlinode.images.sharegroup_images

Fields

The following fields are returned by SELECT queries:

A paginated list of shared images in a share group.

NameDatatypeDescription
idstringRead-only The shared image's unique idenfifier. (example: shared/1)
capabilitiesarrayRead-only A list of the possible capabilities of this image.
createdstring (date-time)Read-only When this image share was created. (example: 2025-08-04T10:07:59)
created_bystringRead-only The shared image creator's username.
deprecatedbooleanRead-only A true value indicates a deprecated image. Only public images can be deprecated.
descriptionstringThe shared image's detailed description. (example: Official Debian Linux image for server deployment)
eolstring (date-time)Read-only The time of the public image's planned removal from service. null for private images.
expirystring (date-time)Read-only Only images created automatically from a deleted compute instance (type=automatic) expire, null for private images.
image_sharingobjectRead-only Sharing information for the image, including who it was shared by and with.
is_publicbooleanRead-only A true value if the image is a public distribution image. A false value indicates private, account-specific images.
is_sharedstringRead-only A true value for shared private images. none for images shared within a group. (true, false, none) (example: none)
labelstringFilterable The shared image's name. (example: Linux Debian)
regionsarrayFilterable, Read-only Details on the regions where this image is stored. See Regions and images for full details on support for regions.
sizeintegerRead-only The minimum size in MB this image needs to deploy.
statusstringRead-only The current status of the image. Possible values are available, creating, and pending_upload. (creating, pending_upload, available) (example: available)
tagsarrayFilterable, Read-only The shared image's organizational tags. A tag can be from 3 to 100 characters long, and each image can include up to 500 tags.
total_sizeintegerRead-only The total size in bytes of all instances of this image, in all regions.
typestringFilterable, Read-only Indicates how the image was created. It's always shared for images in a shared group. An automatic image is created automatically from a deleted compute instance. Other users within share groups can access a shared image. (manual, automatic, shared) (example: shared)
updatedstring (date-time)Read-only When this image share was last updated.
vendorstringRead-only The upstream distribution vendor, null for private and shared images.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_tokenselecttokenUuidLists all the shared images a member can access within a share group, using a membership token. To get the token_uuid, run the Get a token operation.

Learn more...

Learn more...
listselectsharegroupIdGet the details about images shared in a particular 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, imagesAdds images to an existing group where you can share them with other members.

- 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 Get an image operation to see the existing images' id values. If needed, Create an image or Upload an image.

- You can set a label and description for each image, visible to all group members. If omitted, the shared image keeps the original image's details. Note that when you Update the original image, it has no effect on a shared image's details within any groups.

Learn more...

Learn more...
updatereplacesharegroupId, imageIdUpdates the details of an image shared within a share group. Run this operation to edit the label and description of a particular shared image.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group. To get the imageID, run the List shared images by group operation.

- You can update either of the fields, but when you provide a new label, make sure that it's not an empty string.

Learn more...

Learn more...
deletedeletesharegroupId, imageIdRevokes access to a shared image within an owned group for all members.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group. To get the imageID, run the List shared images by group operation.

- To add a private image back to a share group, run the Add images to a share group.

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
imageIdstringSlug identifier assigned to the shared image upon sharing.
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

Lists all the shared images a member can access within a share group, using a membership token. To get the token_uuid, run the Get a token operation.

Learn more...

Learn more...

SELECT
id,
capabilities,
created,
created_by,
deprecated,
description,
eol,
expiry,
image_sharing,
is_public,
is_shared,
label,
regions,
size,
status,
tags,
total_size,
type,
updated,
vendor
FROM linode.images.sharegroup_images
WHERE tokenUuid = '{{ tokenUuid }}' -- required
;

INSERT examples

Adds images to an existing group where you can share them with other members.

- 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 Get an image operation to see the existing images' id values. If needed, Create an image or Upload an image.

- You can set a label and description for each image, visible to all group members. If omitted, the shared image keeps the original image's details. Note that when you Update the original image, it has no effect on a shared image's details within any groups.

Learn more...

Learn more...

INSERT INTO linode.images.sharegroup_images (
images,
sharegroupId
)
SELECT
'{{ images }}' /* required */,
'{{ sharegroupId }}'
RETURNING
id,
capabilities,
created,
created_by,
deprecated,
description,
eol,
expiry,
image_sharing,
is_public,
is_shared,
label,
regions,
size,
status,
tags,
total_size,
type,
updated,
vendor
;

REPLACE examples

Updates the details of an image shared within a share group. Run this operation to edit the label and description of a particular shared image.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group. To get the imageID, run the List shared images by group operation.

- You can update either of the fields, but when you provide a new label, make sure that it's not an empty string.

Learn more...

Learn more...

REPLACE linode.images.sharegroup_images
SET
description = '{{ description }}',
label = '{{ label }}'
WHERE
sharegroupId = '{{ sharegroupId }}' --required
AND imageId = '{{ imageId }}' --required
RETURNING
id,
capabilities,
created,
created_by,
deprecated,
description,
eol,
expiry,
image_sharing,
is_public,
is_shared,
label,
regions,
size,
status,
tags,
total_size,
type,
updated,
vendor;

DELETE examples

Revokes access to a shared image within an owned group for all members.

- Run the List share groups operation to get the id you should use as the (sharegroupId) path parameter that identifies an existing share group. To get the imageID, run the List shared images by group operation.

- To add a private image back to a share group, run the Add images to a share group.

Learn more...

Learn more...

DELETE FROM linode.images.sharegroup_images
WHERE sharegroupId = '{{ sharegroupId }}' --required
AND imageId = '{{ imageId }}' --required
;