Skip to content

Commit e409e72

Browse files
committed
minor change
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent b3c8784 commit e409e72

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

source/adminguide/extensions/developer.rst

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,27 @@ Example:
5959
.. code-block:: json
6060
6161
{
62-
"resourceType": "VM",
63-
"resourceUuid": "2b3c3e54-1ef3-4b8b-941d-61a1adcc7fa2",
64-
"action": "deploy",
65-
"accessDetails": {
66-
"username": "admin",
67-
"apiKey": "ABCD1234"
68-
}
62+
"externaldetails": {
63+
"resourcemap": {
64+
...
65+
},
66+
"virtualmachine": {
67+
"exttemplateid": "1"
68+
},
69+
"host": {
70+
...
71+
},
72+
"extension": {
73+
...
74+
}
75+
},
76+
"virtualmachineid": "...",
77+
"cloudstack.vm.details": {
78+
"id": 25,
79+
"name": "i-2-100-QA",
80+
...
81+
},
82+
"virtualmachinename": "i-2-100-QA"
6983
}
7084
7185
The schema varies depending on the resource and action. Use this to perform context-specific logic.
@@ -82,7 +96,7 @@ Your extension should write a response JSON to ``stdout``. Example:
8296
"message": "Deployment completed"
8397
}
8498
85-
For custom actions, CloudStack will display the ``message`` in the UI if the output JSON includes ``"print_message": "true"``.
99+
For custom actions, CloudStack will display the ``message`` in the UI if the output JSON includes ``"printmessage": "true"``.
86100
The ``message`` field can be a string, a JSON object or a JSON array.
87101

88102
Action Lifecycle

0 commit comments

Comments
 (0)