Get info about a Linode StackScript.
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: Get info about a StackScript by label
linode.cloud.stackscript_info:
label: my-stackscript
- name: Get info about a StackScript by ID
linode.cloud.stackscript_info:
id: 12345
Field | Type | Required | Description |
---|---|---|---|
label |
str |
Optional | The label of the StackScript to resolve. (Conflicts With: id ) |
id |
int |
Optional | The ID of the StackScript to resolve. (Conflicts With: label ) |
-
stackscript
- The returned StackScript.- Sample Response:
{ "created": "2018-01-01T00:01:01", "deployments_active": 1, "deployments_total": 12, "description": "This StackScript installs and configures MySQL", "id": 10079, "images": [ "linode/debian11", "linode/debian10" ], "is_public": true, "label": "a-stackscript", "mine": true, "rev_note": "Set up MySQL", "script": "#!/bin/bash", "updated": "2018-01-01T00:01:01", "user_defined_fields": [ { "default": null, "example": "hunter2", "label": "Enter the password", "manyOf": "avalue,anothervalue,thirdvalue", "name": "DB_PASSWORD", "oneOf": "avalue,anothervalue,thirdvalue" } ], "user_gravatar_id": "a445b305abda30ebc766bc7fda037c37", "username": "myuser" }
- Sample Response: