Get poll information
/apiplatform/gatewaynode/v1/config/poller
Returns polling status and information about the most recent poll for this node.
Users requesting this resource must be assigned the Gateway Manager role for the logical gateway this node is registered to.
Request
There are no request parameters for this operation.
Back to TopResponse
- application/json
- text/plain
200 Response
object
-
lastInterestingPoll(optional):
string
Timestamp of last poll where entities were processed. The timestamp is returned in the following format: E M d k:m:s z Y. Example:Thu Jan 1 12:01:23 PDT 2016
-
lastPolled:
string
Last Poll timestamp. The timestamp is returned in the following format: E M d k:m:s z Y. Example: Thu Jan 1 12:01:23 PDT 2017
-
message(optional):
string
Message for the reason of the state.
object
-
state:
string
The poller's state.
active
means polling is active;inactive
means polling is inactive.
object
-
pollingInterval:
integer(int64)
The polling time interval, in milliseconds.
object
-
apis:
array apis
APIs processed in the poll.
-
applications:
array applications
Applications processed in the poll.
-
artifacts:
array artifacts
Artifacts processed in the poll.
-
configurations:
array configurations
Configurations processed in the poll.
-
policies:
array policies
Policies processed in the poll.
-
serviceAccounts:
array serviceAccounts
Service Accounts processed in the poll.
-
services:
array services
Service Objects processed in the poll.
-
subscriptions:
array subscriptions
Subscriptions processed in the poll.
object
-
action:
string
The action performed on the API.
-
apiId:
string
The API's ID.
-
deploymentState:
string
The deployment state of the API.
object
-
action:
string
The action performed on the application.
-
deploymentState:
string
The deployment state of the application.
-
id:
string
The application's ID.
object
-
action:
string
The action performed with the artifact.
-
deploymentState:
string
The deployment state of the artifact.
-
name:
string
The artifact's name.
-
version:
string
The artifact's version.
object
-
action:
string
The configuration action type.
-
deploymentState:
string
The deployment state of the configuration.
-
value:
string
The configuration value.
object
-
action:
string
The action performed on the policy.
-
deploymentState:
string
The deployment state of the policy.
-
name:
string
The policy's name.
-
revision:
string
The policy's revision number.
-
type:
string
The policy's type.
-
version:
string
The policy's version.
object
-
action:
string
The action performed with the service account.
-
configuration(optional):
string
The configuration for the service account.
-
deploymentState:
string
The deployment state of the service account.
-
id:
string
The service account's ID.
-
name(optional):
string
The name of the service account.
object
-
action:
string
The action performed with the service.
-
deploymentState:
string
The deployment state of the service object.
-
id:
string
The service object's ID.
-
implementation(optional):
string
The service object's implementation. Please see Object definition in Management APIs
-
name(optional):
string
The service object's name.
-
version(optional):
string
The service object's version.
object
-
action:
string
The action performed on the subscription.
-
apiId:
string
The API's ID.
-
appId:
string
The application's ID.
-
deploymentState:
string
The deployment state of the application.
401 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
403 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
500 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
503 Response
object
-
detail(optional):
string
Detailed error message.
-
errorCode(optional):
string
Application-specific error code.
-
errorDetails(optional):
array errorDetails
Additional errors.
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
status(optional):
string
HTTP status code.
-
title:
string
Summary error message.
-
type:
string
Error type.
array
-
Array of:
object Error
Error Definition.
Examples
The following example shows how to retrieve the last poll date and the configured polling interval of a gateway node by submitting a GET request on the REST resource using cURL. For more information about cURL, see Use cURL
curl -i -X GET
-H "Authorization: Bearer access_token
https://example.com/apiplatform/gatewaynode/v1/config/poller
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 200 OK Date: Fri, 30 Dec 2016 17:37:41 GMT Transfer-Encoding: chunked Content-Type: application/json
Example of Response Body
The following example shows the contents of the response body in JSON format, including the last poll date, the configured polling interval, in milliseconds, and the updates that were made as a result of the last poll with changes.
{ "lastPolled": "Fri Dec 30 12:35:52 PST 2016", "pollingInterval": 5000, "state": "active", "lastInterestingPoll": "Fri Dec 30 10:33:28 PST 2016", "lastDelta": { "subscriptions": [ { "deploymentState": "DEPLOYED", "appId": "100", "action": "CREATE", "apiId": "103" }, { "deploymentState": "DEPLOYED", "appId": "100", "action": "CREATE", "apiId": "104" }, { "deploymentState": "DEPLOYED", "appId": "101", "action": "CREATE", "apiId": "103" }, { "deploymentState": "DEPLOYED", "appId": "101", "action": "CREATE", "apiId": "104" }, { "deploymentState": "DEPLOYED", "appId": "102", "action": "CREATE", "apiId": "105" }, { "deploymentState": "DEPLOYED", "appId": "102", "action": "CREATE", "apiId": "106" }, { "deploymentState": "DEPLOYED", "appId": "103", "action": "CREATE", "apiId": "105" }, { "deploymentState": "DEPLOYED", "appId": "103", "action": "CREATE", "apiId": "106" } ], "apis": [ { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "106" }, { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "103" }, { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "101" }, { "deploymentState": "FAILED", "action": "DEPLOY", "apiId": "100" }, { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "104" }, { "deploymentState": "FAILED", "action": "DEPLOY", "apiId": "102" }, { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "107" }, { "deploymentState": "DEPLOYED", "action": "DEPLOY", "apiId": "105" } ], "configurations": [], "policies": [], "artifacts": [], "applications": [] } }