Method: projects.locations.tuningJobs.list

Lists TuningJobs in a Location.

Endpoint

get https://aiplatform.googleapis.com/v1beta1/{parent}/tuningJobs

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.tuning import sft

# TODO(developer): Update and un-comment below line
# PROJECT_ID = "your-project-id"
vertexai.init(project=PROJECT_ID, location="us-central1")

responses = sft.SupervisedTuningJob.list()

for response in responses:
    print(response)
# Example response:
# <vertexai.tuning._supervised_tuning.SupervisedTuningJob object at 0x7c85287b2680>
# resource name: projects/12345678/locations/us-central1/tuningJobs/123456789012345

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
}