RTBFabric / Client / list_updates

list_updates

RTBFabric.Client.list_updates(**kwargs)

Lists the updates on a gateway. Results are paginated. Use nextToken to get the next page.

See also: AWS API Documentation

Request Syntax

response = client.list_updates(
    gatewayId='string',
    linkId='string',
    ruleId='string',
    type='GATEWAY_CONFIG_UPDATE'|'LINK_CONFIG_UPDATE'|'LINK_FLOW_UPDATE'|'ROUTING_RULE_UPDATE',
    status='IN_PROGRESS'|'SUCCESSFUL'|'FAILED',
    nextToken='string',
    maxResults=123
)
Parameters:
  • gatewayId (string) –

    [REQUIRED]

    The unique identifier of the gateway.

  • linkId (string) – The ID of a link on this gateway, to list only that link’s updates. Omit both linkId and ruleId to list the gateway’s own updates.

  • ruleId (string) – The ID of a routing rule, to list only that rule’s updates. Requires linkId, because you address a rule through its link. A ruleId without linkId fails with ValidationException.

  • type (string) – Lists only updates of this type.

  • status (string) – Lists only updates in this status.

  • nextToken (string) – If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

  • maxResults (integer) – The maximum number of results to return for each call.

Return type:

dict

Returns:

Response Syntax

{
    'updates': [
        {
            'updateId': 'string',
            'type': 'GATEWAY_CONFIG_UPDATE'|'LINK_CONFIG_UPDATE'|'LINK_FLOW_UPDATE'|'ROUTING_RULE_UPDATE',
            'status': 'IN_PROGRESS'|'SUCCESSFUL'|'FAILED',
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • updates (list) –

      The updates on this page.

      • (dict) –

        A summary of an update.

        • updateId (string) –

          The unique identifier of the update.

        • type (string) –

          The type of change.

        • status (string) –

          The status of the update.

        • createdAt (datetime) –

          The timestamp of when the update was created.

    • nextToken (string) –

      If nextToken is returned, there are more results available. Make the call again using the returned token to retrieve the next page.

Exceptions