Summary
Runs a resource action
Description
Runs a resource action
Route
POST /lifecycle-manager/resources/:modelId/run-action
Roles
admin
apiwrite
designer
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
modelId |
string |
yes |
The ID of the Resource Model to run an action on |
options |
object |
yes |
Designates the action to run, along with its corresponding inputs and the Resource Model instance it will be run against. |
Copied to Clipboard
{
"actionId": "5341",
"instance": "magna Duis nulla nostrud",
"instanceName": "VLAN Service",
"instanceDescription": ""
}
Copied to Clipboard
{
"title": "options",
"type": "object",
"required": [
"actionId"
],
"additionalProperties": false,
"properties": {
"actionId": {
"$ref": "resource-model-common#/definitions/action-identifier"
},
"instance": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "resource-instance-http"
}
]
},
"instanceName": {
"$ref": "resource-instance-common#/definitions/name"
},
"instanceDescription": {
"$ref": "resource-instance-common#/definitions/description"
},
"inputs": {
"oneOf": [
{
"type": "object"
},
{
"type": "null"
}
]
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
- |
Copied to Clipboard
{
"message": "A server error occurred while processing this request",
"data": "null",
"metadata": {
"errors": []
}
}