Target Nodes
User Data

Update an existing user data template

Changed on

Update an existing user data template for target nodes

put/api/target_nodes/user_data

Request

  • The document declares no server URL.
  • Auth
    socaAuth (a scheme the document does not define) and socaToken (a scheme the document does not define)

Headers

X-EDH-USERstring required
Example:admin

SOCA username for authentication

X-EDH-TOKENstring required
Example:abc123token

SOCA authentication token

Request body application/x-www-form-urlencoded

template_idstring required

ID of the template to update

descriptionstring required

Updated description (max 500 characters)

user_datastring required

Updated EC2 user data script (max 16KB)

Example request

{
  "template_id": "2",
  "description": "Updated custom template description",
  "user_data": "#!/bin/bash echo 'Updated script'"
}

Response

User data template updated successfully

successboolean required
messagestring required

Example response

{
  "success": true,
  "message": "User Data Template has been updated successfully"
}

Changes

    • info

      the endpoint scheme security socaAuth AND socaToken was added to the API

    • info

      the endpoint scheme security edhAuth AND edhToken was removed from the API

    • info

      added the non-success response with the status

    • info

      the endpoint scheme security edhAuth AND edhToken was added to the API

    • info

      the endpoint scheme security socaAuth AND socaToken was removed from the API