Manage an Image Share Group.
| Field | Type | Required | Description |
|---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: Create a basic image share group
linode.cloud.image_share_group:
label: "my-sharegroup"
description: "My image share group."
state: present- name: Create a basic image share group with an image
linode.cloud.image_share_group:
label: "my-sharegroup"
description: "My image share group."
images:
- id: "private/123"
label: "My shared image"
description: "An image shared in the group."
state: present
- name: Delete an image share group
linode.cloud.image_share_group:
label: "my-sharegroup"
state: absent| Field | Type | Required | Description |
|---|---|---|---|
label |
str |
Required | This Image Share Group's unique label. |
state |
str |
Required | The desired state of the target. (Choices: present, absent) |
description |
str |
Optional | A description of this Image Share Group. |
images (sub-options) |
list |
Optional | A list of images to include in this Image Share Group. |
| Field | Type | Required | Description |
|---|---|---|---|
id |
str |
Required | The id of the Private Image to include in an Image Share Group. |
label |
str |
Optional | A label to assign to the Image within the context of an Image Share Group. |
description |
str |
Optional | A description to assign to the Image within the context of an Image Share Group. |
-
image_share_group- The Image Share Group in JSON serialized form.- Sample Response:
{ "created": "2025-04-14T22:44:02", "description": "My image share group.", "expiry": null, "id": 1, "images_count": 0, "is_suspended": false, "label": "my-sharegroup", "members_count": 0, "updated": null, "uuid": "1533863e-16a4-47b5-b829-ac0f35c13278" } - See the Linode API response documentation for a list of returned fields
- Sample Response: