Page tree
Skip to end of metadata
Go to start of metadata

API Essentials

API Key Generation

Autoscaling

Backups

Credit

DNS

Firewall Rules

Flex Cloud VM Control

Getting Started with Superb Flex Cloud

IP Addresses

Logs

Network Interfaces

Recipes

SSH Keys

Templates

Test Route

Troubleshooting API Issues

Viewing Activity Logs

Virtual Server Operating Systems

Virtual Servers

VS Disks

POST /recipes 

Adds a new recipe

Sections:

Request Parameters

label - recipe label

description - recipe description

compatible_with - recipe compatibility: windows or unix

script_type - script type for Windows-compatible recipes:

  • bat 
  • vbs 
  • powershell (PowerShell v1.0)

This parameter is for Windows recipes only.

Response Parameters

201 Status and created recipe is returned on success

JSON Request example

curl -i -X POST -u user:userpass <api_url>/recipes.json -d '{"recipe":{"label":"New Label", "description":"New Description","compatible_with":"windows","script_type":"bat"}}' -H 'Accept: application/json' -H 'Content-type: application/json'


XML Request example

curl -i -X POST -u user:userpass <api_url>/recipes.xml -d '<recipe><label>New Label</label><description>New description</description><compatible_with>windows</compatible_with><script_type>bat</script_type></recipe>' -H 'Accept: application/xml' -H 'Content-type: application/xml'
  • No labels