Configuration Script Sources
Management of configuration script sources is provided via the following collection:
/api/configuration_script_sources
Full CRUD actions on configuration script sources is available:
Querying Configuration Script Sources
Querying all configuration script sources in the system is simply:
GET /api/configuration_script_sources
Getting details on a specific configuration script source:
GET /api/configuration_script_sources/:id
Creating Configuration Script Sources
Configuration script sources can be created via a POST to the configuration script sources collection or via the create action signature which also allows creation of multiple configuration script sources in a single request.
POST /api/configuration_script_sources
{
"name" : "My Project",
"description" : "My Project's Description",
"manager_resource" : { "href" : "http://localhost:3000/api/providers/7" },
"related" : {}
}
or creating multiple configuration script sources:
{
"action" : "create",
"resources" : [
{ "name" : "My First Project", "description" : "My First Project Description", ... },
{ "name" : "My Second Project", "description" : "My Second Project Description", ... },
...
]
}
Please refer to the Resource Attributes page for a list of available attributes when creating configuration script sources. |
Editing Configuration Script Sources
POST /api/configuration_script_sources/:id
{
"action" : "edit",
"resource" : {
"description" : "Updated Project Description"
}
}
or editing multiple configuration script sources:
POST /api/configuration_script_sources
{
"action" : "edit",
"resources" : [
{
"href" : "http://localhost:3000/api/configuration_script_sources/101",
"description" : "Updated Project Description 1"
},
{
"href" : "http://localhost:3000/api/configuration_script_sources/102",
"description" : "Updated Project Description 2"
},
...
]
}
Deleting Configuration Script Sources
Configuration script sources can be deleted via either the delete POST action or via the DELETE HTTP method.
POST /api/configuration_script_sources/101
{
"action" : "delete"
}
or simply:
DELETE /api/configuration_script_sources/101
Deleting multiple configuration script sources can be done as follows:
POST /api/configuration_script_sources
{
"action" : "delete",
"resources" : [
{ "href" : "http://localhost:3000/api/configuration_script_sources/101" },
{ "href" : "http://localhost:3000/api/configuration_script_sources/102" },
...
]
}