# SAS Portal API . customers . nodes . nodes

## Instance Methods

Creates a new node.

Lists nodes.

Retrieves the next page of results.

### Method Details

`create(parent, body=None, x__xgafv=None)`

    Creates a new node.

    Args:
      parent: string, Required. The parent resource name where the node is to be created. (required)
      body: object, The request body.
        The object takes the form of:

    { # The Node.
      "displayName": "A String", # The node's display name.
      "sasUserIds": [ # User ids used by the devices belonging to this node.
        "A String",
      ],
      "name": "A String", # Output only. Resource name.
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # The Node.
        "displayName": "A String", # The node's display name.
        "sasUserIds": [ # User ids used by the devices belonging to this node.
          "A String",
        ],
        "name": "A String", # Output only. Resource name.
      }

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

    Lists nodes.

    Args:
      parent: string, Required. The parent resource name, for example, "nodes/1". (required)
      pageToken: string, A pagination token returned from a previous call to ListNodes method
    that indicates where this listing should continue from.
      pageSize: integer, The maximum number of nodes to return in the response.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Response for ListNodes method.
        "nodes": [ # The nodes that match the request.
          { # The Node.
            "displayName": "A String", # The node's display name.
            "sasUserIds": [ # User ids used by the devices belonging to this node.
              "A String",
            ],
            "name": "A String", # Output only. Resource name.
          },
        ],
        "nextPageToken": "A String", # A pagination token returned from a previous call to
            # ListNodes method
            # that indicates from where listing should continue. If the field is missing
            # or empty, it means there is no more nodes.
      }

`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.