Method: projects.locations.tuningJobs.list

Lists TuningJobs in a Location.

Endpoint

get https://{service-endpoint}/v1/{parent}/tuningJobs

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

parent string

Required. The resource name of the Location to list the TuningJobs from. Format: projects/{project}/locations/{location}

Query parameters

filter string

Optional. The standard list filter.

pageSize integer

Optional. The standard list page size.

pageToken string

Optional. The standard list page token. Typically obtained via [ListTuningJob.next_page_token][] of the previous GenAiTuningService.ListTuningJob][] call.

Request body

The request body must be empty.

Example request

Python

import vertexai
from vertexai.preview.tuning import sft

# TODO(developer): Update project
vertexai.init(project=PROJECT_ID, location="us-central1")

responses = sft.SupervisedTuningJob.list()

for response in responses:
    print(response)

Response body

Response message for GenAiTuningService.ListTuningJobs

If successful, the response body contains data with the following structure:

Fields
tuningJobs[] object (TuningJob)

List of TuningJobs in the requested page.

nextPageToken string

A token to retrieve the next page of results. Pass to ListTuningJobsRequest.page_token to obtain that page.

JSON representation
{
  "tuningJobs": [
    {
      object (TuningJob)
    }
  ],
  "nextPageToken": string
}