Resources
Configuration
Used for domain configuration operations
Add or Update a resource
POST /management/domain/{resource}
Description
Use this operation to add new resources to the configuration tree or to update the configuration of an existing resource. If the resource is a parent resource, then the operation would add a new child resource. Otherwise, the operation would update the resource’s configuration.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
X-Requested-By required |
This header must ALWAYS be set to the value GlassFish REST HTML interface |
string |
Path |
resource required |
The qualified name of the resource. If adding a child resource, the name of the resource’s parent. If updating a resource’s configuration then it is the name of the target resource. |
string |
FormData |
parameter optional |
The name parameter is a placeholder for any parameters the resource uses for its creation or update. If multiple parameters are used, repeat this placeholder for each one. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The operation has executed successfully and contextual information about the result is returned. |
|
400 |
The operation has failed. One of the possible reasons are:
The command or method`s request parameters aren`t set correctly.
The |
|
401 |
Users credentials are not valid to execute this operation |
|
404 |
Either the parent resource (when adding new resources) or the target resource (when updating a resource) does not exists. |
No Content |
Get information for a resource
GET /management/domain/{resource}
Description
Use this operation to determine the current configuration of a resource and what are its supported methods, method parameters and available commands.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
resource required |
The qualified name of the resource on the configuration tree. Input this parameter using dotted path notation, e.g. if the object’s name is nodes.node.localhost-domain1 then the correct value is nodes/node/localhost-domain1 |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object representing the contextual information for the resource |
|
401 |
Users credentials are not valid to execute this operation |
|
404 |
The specified resource does not exist |
No Content |
Delete a resource
DELETE /management/domain/{resource}
Description
Removes the specified resource from the configuration’s tree. The deleted resource will no longer be present in the child-resources list of the parent’s resource.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
X-Requested-By required |
This header must ALWAYS be set to the value GlassFish REST HTML interface |
string |
Path |
resource required |
The qualified name of the resource. |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The operation has executed successfully and contextual information about the result is returned. |
|
400 |
The operation has failed. The |
|
401 |
Users credentials are not valid to execute this operation |
|
404 |
The target resource does not exists. |
No Content |
Logging
Used for domain logging purposes
Get domain log
GET /management/domain/view-log
Description
Get the server’s log contents of the target domain. Each time this
operation is executed, the response will include the X-Text-Append-Next
header to retrieve changes made to the log since the operation was called.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Query |
start optional |
Use this parameter to skip a determined number of characters in the log file. |
number(integer) |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The contents of the domain’s log as requested. Headers :
|
No Content |
401 |
Users credentials are not valid to execute this operation |
Get log entries
GET /management/view-log/details
Description
Get the server’s log details of the target domain. The details can be retrieved on both JSON or XML formats. If the 'Accept' header is omitted, the default format is XML.
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An array of the log records retrieved. |
< LogRecord > array |
401 |
Users credentials are not valid to execute this operation |
Monitoring Used for monitoring operations
Description
Retrieves the monitoring statistics for a monitorable resource in the domain. In order to retrieve the monitoring statistics for a specific resource, you must configure the monitoring level of the specific category the resource falls into (JVM, Connection Pools, ORB, etc.) first.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
resource required |
The name of the monitored resource under
the special monitoring tree structure used for Payara. Input this
parameter using dotted path notation, e.g. if the resource’s name is
|
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
An object representing the contextual information for the resource, with the monitoring statistics if a child resource. If the resource is parent resource, then the child resources that can be monitored will be returned. |
|
401 |
Users credentials are not valid to execute this operation |
|
404 |
Either the resource does not exist or the category (parent resource) of the resource has not been configured for being monitored yet. |
Sessions
Used for session management
Get session token
POST /management/sessions
Description
Use this method for retrieving a special session token that can be used to authenticate an user when executing administration or monitoring operations.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
X-Requested-By required |
This header must ALWAYS be set to the value GlassFish REST HTML interface |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
Returns the session token successfully |
|
400 |
The operation has failed. The |
|
401 |
Users credentials are not valid to execute this operation |
Delete session token
DELETE /management/sessions/{token}
Description
Retires a session token so that users can no longer do requests that authenticate with it.
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Header |
X-Requested-By required |
This header must ALWAYS be set to the value GlassFish REST HTML interface |
string |
Path |
token required |
The session token to delete |
string |
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
The session token was deleted successfully. |
|
400 |
The operation has failed. Either the |
|
401 |
Users credentials are not valid to execute this operation |