Target Nodes
User Data

Create a new user data template

Changed on

Create a new user data template for target nodes

post/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_namestring required

Name for the user data template

descriptionstring required

Description of the template (max 500 characters)

user_datastring required

EC2 user data script (max 16KB)

Example request

{
  "template_name": "my-custom-template",
  "description": "Custom user data template for CAE workloads",
  "user_data": "#!/bin/bash echo 'Hello World'"
}

Response

User data template created successfully

successboolean required
messagestring required

Example response

{
  "success": true,
  "message": "User Data template has been created 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