# OS Config API . projects . patchJobs . instanceDetails

## Instance Methods

Close httplib2 connections.

Get a list of instance details for a given patch job.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)`

    Get a list of instance details for a given patch job.

    Args:
      parent: string, Required. The parent for the instances are in the form of `projects/*/patchJobs/*`. (required)
      filter: string, A filter expression that filters results listed in the response. This field supports filtering results by instance zone, name, state, or `failure_reason`.
      pageSize: integer, The maximum number of instance details records to return. Default is 100.
      pageToken: string, A pagination token returned from a previous call that indicates where this listing should continue from.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A response message for listing the instances details for a patch job.
      "nextPageToken": "A String", # A pagination token that can be used to get the next page of results.
      "patchJobInstanceDetails": [ # A list of instance status.
        { # Patch details for a VM instance. For more information about reviewing VM instance details, see [Listing all VM instance details for a specific patch job](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).
          "attemptCount": "A String", # The number of times the agent that the agent attempts to apply the patch.
          "failureReason": "A String", # If the patch fails, this field provides the reason.
          "instanceSystemId": "A String", # The unique identifier for the instance. This identifier is defined by the server.
          "name": "A String", # The instance name in the form `projects/*/zones/*/instances/*`
          "state": "A String", # Current state of instance patch.
        },
      ],
    }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.