Retrieve Userdata Script
- Name
get
- Type
- /v1/userdata/:uuid
- Description
You can get information about a specific userdata script by making a
GET
request to the userdata scripts's uuid endpoint.
Request
Example
curl -X GET "https://api.simplystack.com/v1/userdata/69604814-f02f-4978-8c90-4a0957889218"
-H "Content-Type: application/json"
-H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0"
Response
JSON object with a key named userdata
which is an array of the following attributes:
Attributes
Example
json
{
"userdata": {
"uuid": "69604814-f02f-4978-8c90-4a0957889218",
"name": "script01",
"userdata": "#!/bin/sh\necho "Hello World. The time is now $(date -R)!" | tee /root/output.txt",
"created_at": "2021-02-01T12:14:47.134880Z"
}
}