Skip to content

Commit

Permalink
F #1414: onegate delete request api (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps authored Mar 23, 2020
1 parent bef49ed commit 10eea53
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/advanced_components/application_insight/onegate_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,23 @@ Self-awareness
USER TEMPLATE
APP_LOAD="9.7"

* ``PUT ${ONEGATE_ENDPOINT}/vm?type=2``: To delete information from the template of the current VM.
* ``PUT ${ONEGATE_ENDPOINT}/vms/${VM_ID}?type=2``: To delete information from the template of a specific VM of the Service.

.. prompt:: text $ auto

$ curl -X "PUT" "${ONEGATE_ENDPOINT}/vm?type=2" \
--header "X-ONEGATE-TOKEN: `cat token.txt`" \
--header "X-ONEGATE-VMID: $VMID" \
-d "APP_LOAD"

The new metric is stored in the user template section of the VM:

.. prompt:: text $ auto

$ onevm show 0
...
USER TEMPLATE

* ``GET ${ONEGATE_ENDPOINT}/service``: To request information about the Service. The information is returned in JSON format and is ready for public cloud usage. By pushing data ``PUT /vm`` from one VM and pulling the Service data from another VM ``GET /service``, nodes that are part of a OneFlow Service can pass values from one to another.

Expand Down

0 comments on commit 10eea53

Please sign in to comment.