Allows you to set a new value for the extended setting. This value is not displayed immediately unless you run the Synchronize Extended Setting Configuration API or set the updateRuntime value to true.
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: Name of the extended setting such as, watt.server.coder.responseAsXML.
For example, /default/settings/watt.server.coder.responseAsXML
updateRuntime: Set with one of the following values:
true: Value of the extended setting is synchronized with runtime.
false: Value is applied when the runtime is restarted or when you run the Synchronize Extended Setting value API.
For example, ../default/settings/watt.server.coder.responseAsXML
Request Headers
Content-Type: application/json
Request Body
{
"value": "false"
}
Response
If the request is successful, you will receive the HTTP 200 OK success status response code.
{
"code": 0,
"description": "Property was updated successfully. Synchronize with runtime to apply the changes."
}
If updateRuntime is set to true, then the following response is received:
{
"code": 0,
"description": "Property was updated successfully. The synchronization process has started. Check the <runtime-alias> for more details later."
}
POST - Synchronize Extended Setting Configuration
Allows you to synchronize the configured setting with the runtime.
URL
../<runtime-alias>/settings/<asset-id>/sync
Parameters
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: - Name of the extended setting such as, watt.server.coder.responseAsXML.
For example, ../default/settings/watt.net.maxRetries/sync
Request
None
Response
{
"code": 0,
"description": "The synchronization process has started. Check the <runtime-alias> for more details later."
}
Allows you to create a JNDI for a cloud runtime. JNDI Alias is not created immediately on the cloud runtime unless updateRuntime is set to true or Synchronize JNDI Alias with runtime API is run.
updateRuntime: Set with one of the following values:
true: Newly created JNDI alias is synchronized with the cloud runtime.
false: Newly created JNDI alias is not synchronized with the cloud runtime.
for example, ../default/jndi/LocalJNDI creates JNDI alias with name LocalJNDI for the cloud runtime.
Note
JNDI alias can be created only in the cloud runtime. To use JNDI alias in an edge runtime, you must run the Override JNDI Alias API for a runtime and sync the alias on that runtime.
{
"code": 0,
"description": "Asset was added successfully."
}
PUT - Update JNDI Alias
Allows you to update the values of a JNDI alias in a runtime. These values are not displayed immediately in the cloud runtime unless updateRuntime is true or the Synchronize JNDI Alias with runtime API is run.
updateRuntime: Set with one of the following values:
true: Newly created values are synchronized with the cloud runtime.
false: Newly created values are not synchronized with the cloud runtime.
Note
JNDI alias can only be updated in the cloud runtime. To use JNDI alias in an edge runtime, you must run the Override JNDI Alias API for a runtime and sync the alias on that runtime.
Calling the ../default/jndi/LocalJNDI API with the mentioned details will update the description of LocalJNDI in the cloud runtime.
Response
Response when request is successful:
{
"code": 0,
"description": "Asset was updated successfully. Synchronize with Cloud Runtime to apply these configurations."
}
Response when updateRuntime value is set to true:
{
"code": 0,
"description": "Asset was updated successfully. The synchronization process has started. Check the Cloud Runtime for more details later."
}
PATCH - Override JNDI Alias
Allows you to override JNDI alias for a particular runtime. Like create or update APIs, the overridden values are not immediately displayed on the runtime, unless the updateRuntime value is set to true or the Synchronize JNDI Alias with runtime API is run.
Note
The Override JNDI Alias API must be invoked atleast once for a runtime other than the cloud runtime for JNDI alias to be available in that runtime. If no properties have to be overridden, then the Override JNDI Alias API must be invoked with an empty request body.
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: Name of the JNDI alias.
updateRuntime: Set with one of the following values:
true: Overridden configurations are applied to the provided runtime after save.
false: Overridden configurations are not applied to the provided runtime. You must synchronize the changes by calling the Synchronize JNDI Alias with runtime API.
Note
JNDI alias values must only be overridden for runtimes other than the cloud runtime.
Calling ../MyEdgeServer/jndi/LocalJNDI API with the mentioned details will override the credentials of LocalJNDI connection for MyEdgeServer runtime.
Response
Response when updateRuntime is false:
{
"code": 0,
"description": "Asset configurations were successfully overridden for <alias>. Synchronize with runtime to apply the changes."
}
Response when updateRuntime is true:
{
"code": 0,
"description": "Asset configurations were successfully overridden for <alias>. The synchronization process has started. Check the runtime for more details later."
}
Response when you specify default as runtime-alias:
{
"code": -1,
"description": "You do not need to override asset values for Cloud Runtime."
}
POST - Synchronize JNDI Alias
Allows you to synchronize JNDI alias with a runtime. This ensures that the JNDI alias is created or updated on the runtime.
URL
../<runtime-alias>/jndi/<asset-id>/sync
Parameters
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: Name of the JNDI alias.
For example, ../MyEdgeServer/jndi/LocalJNDI/sync synchronizes LocalJNDI alias with MyEdgeServer.
Request
Calling ../MyEdgeServer/jndi/LocalJNDI API with mentioned details will update description of LocalJNDI in the MyEdgeServer runtime.
Response
{
"code": 0,
"description": "The synchronization process has started. Check the <runtime-alias> for more details later."
}
Allows you to set a new JMS alias for the cloud runtime. JMS alias is not created immediately on the cloud runtime unless updateRuntime is true or the Synchronize JMS Alias with runtime API is run.
updateRuntime: Set with one of the following values:
true: New JMS alias is synchronized with the cloud runtime.
false: New JMS alias is not synchronized with the cloud runtime.
for example, ../default/jndi/LocalJNDI creates a JMS alias with the name LocalJMS for the cloud runtime.
Note
JMS alias can be created only in the cloud runtime. To use JMS alias in an edge runtime, you must run the Override JNDI Alias API for a runtime and sync the alias on that runtime.
{
"code": 0,
"description": "Asset was added successfully."
}
PUT - Update JMS Alias
Allows you to set new changes to the values of an existing JMS alias in the cloud runtime. These values are not displayed in the cloud runtime unless the updateRuntime value is set to true or the Synchronize JMS Alias with runtime API is run.
URL
../default/jms/<asset-id>
Parameters
asset-id: Name of the JMS alias. Specify default for cloud runtime.
updateRuntime: Set with one of the following values:
true: Newly created values are synchronized with the cloud runtime.
false: Newly created values are not synchronized with the cloud runtime.
Note
JMS alias can only be updated in the cloud runtime. To use JMS alias in an edge runtime, you must run the Override JMS Alias values API for a runtime and sync the alias on that runtime.
Calling the ../default/jms/LocalJMS API with the mentioned details will update description of LocalJMS in the cloud runtime.
Response
Response when the request is successful:
{
"code": 0,
"description": "Asset was updated successfully. Synchronize with Cloud Runtime to apply these configurations."
}
Response when the updateRuntime value is set to true:
{
"code": 0,
"description": "Asset was updated successfully. The synchronization process has started. Check the Cloud Runtime for more details later."
}
PATCH - Override JMS Alias
Allows you to override values of a JMS alias for a particular runtime. Like create or update APIs, overridden values are not immediately displayed on the runtime, unless the updateRuntime value is set to true or Synchronize JMS Alias with runtime API is run.
Note
The Override JMS Alias API must be invoked atleast once for a runtime other than the cloud runtime for JMS alias to be available in that runtime. If no properties need to be overridden, then the Override JMS Alias API must be invoked with an empty request body.
URL
../<runtime-alias>/jms/<asset-id>
Parameters
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: Name of the JMS alias.
updateRuntime: Set with one of the following values:
true: Overridden configurations are applied to provided runtime after save.
false: Overridden configurations are not applied to provided runtime. You must synchronize the changes by calling the Synchronize JNDI Alias with runtime API.
Note
JMS alias values must only be overridden for runtimes other than the cloud runtime.
Request Headers
{
Content-Type: application/json
}
Request Body
{
"properties":
[
{
"propertyKey": "is.jndiAlias.description",
"value": "Updated JMS alias description for MyEdgeServer"
}
]
}
Note
Calling ../MyEdgeServer/jndi/LocalJMS API with the mentioned details will update the description of LocalJMS in the MyEdgeServer runtime.
Response
Response when updateRuntime is false:
{
"code": 0,
"description": "Asset configurations were successfully overridden for <alias>. Synchronize with runtime to apply the changes."
}
Response when updateRuntime is true:
{
"code": 0,
"description": "Asset configurations were successfully overridden for <alias>. The synchronization process has started. Check the runtime for more details later."
}
Response when you specify default as runtime-alias:
{
"code": -1,
"description": "You do not need to override asset values for Cloud Runtime."
}
POST - Synchronize JMS Alias with Runtime
Allows you to synchronize JMS alias with a runtime. This ensures that the JMS alias is created or updated on the runtime.
URL
../<runtime-alias>/jms/<asset-id>/sync
Parameters
runtime-alias: Name of the runtime. Specify the value as default, for the cloud runtime.
asset-id: Name of the JMS alias.
For example, ../MyEdgeServer/jms/LocalJMS/sync synchronizes LocalJMS alias with MyEdgeServer.
Request
Calling ../MyEdgeServer/jms/LocalJMS API with the mentioned details will update description of LocalJMS in MyEdgeServer runtime.
Response
{
"code": 0,
"description": "The synchronization process has started. Check the <runtime-alias> for more details later."
}
PATCH - Enable/Disable JMS Alias
Allows you to enable or disable a JMS alias on a runtime. Unlike other API calls, the Enable/Disable JMS Alias API applies the state immediately on the runtime.
runtime-alias: Name of the runtime. Specify default for the cloud runtime.
asset-id: Name of the JMS alias.
Request Headers
{
Content-Type: application/json
}
Request Body
{
"enabled": "<true|false>"
}
Calling ../MyEdgeServer/jms/LocalJMS/properties/state API with enabled set to false in the mentioned payload, disables the LocalJMS in the MyEdgeServer runtime.
Response
{
"code": 0,
"description": "Asset state was updated successfully. The synchronization process has started. Check the <alias> for more details later."
}