Get poll information

get

/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 Top

Response

Supported Media Types

200 Response

The poller state and last poll information.
Body ()
Poll details.
Root Schema : PollerDetails
Poll details.
Match All
Show Source
Nested Schema : LastPolled
Type: object
Show Source
Nested Schema : PollingState
Type: object
Show Source
  • The poller's state. active means polling is active; inactive means polling is inactive.
Nested Schema : PollingInterval
Type: object
Show Source
Nested Schema : LastDelta
Type: object
Show Source
Nested Schema : PollDelta
Type: object
Show Source
Nested Schema : apis
Type: array
APIs processed in the poll.
Show Source
Nested Schema : applications
Type: array
Applications processed in the poll.
Show Source
Nested Schema : artifacts
Type: array
Artifacts processed in the poll.
Show Source
Nested Schema : configurations
Type: array
Configurations processed in the poll.
Show Source
Nested Schema : policies
Type: array
Policies processed in the poll.
Show Source
Nested Schema : serviceAccounts
Type: array
Service Accounts processed in the poll.
Show Source
Nested Schema : services
Type: array
Service Objects processed in the poll.
Show Source
Nested Schema : subscriptions
Type: array
Subscriptions processed in the poll.
Show Source
Nested Schema : Api
Type: object
Show Source
Nested Schema : Application
Type: object
Show Source
Nested Schema : Artifact
Type: object
Show Source
Nested Schema : Configuration
Type: object
Show Source
Nested Schema : Policy
Type: object
Show Source
Nested Schema : ServiceAccount
Type: object
Show Source
Nested Schema : ServiceObject
Type: object
Show Source
Nested Schema : Subscription
Type: object
Show Source

401 Response

Authentication required.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

403 Response

Forbidden.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

500 Response

Unexpected error.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source

503 Response

Temporarily unavailable error.
Body ()
Error Definition.
Root Schema : Error
Type: object
Error Definition.
Show Source
Nested Schema : errorDetails
Type: array
Additional errors.
Show Source
Back to Top

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": []
  }
}
Back to Top