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 initiate and which instance and inputs to use when initiating it. |
Copied to Clipboard
{
"actionId": "5341",
"instance": "in",
"newInstanceName": "VLAN Service",
"newInstanceDescription": ""
}
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"
}
]
},
"newInstanceName": {
"$ref": "resource-instance-common#/definitions/name"
},
"newInstanceDescription": {
"$ref": "resource-instance-common#/definitions/description"
},
"inputs": {
"oneOf": [
{
"type": "object"
},
{
"type": "null"
}
]
}
}
}
Return
DetailsExampleSchema
Name |
Type |
Description |
response |
object |
- |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": "null"
}