pip show google-cloud-aiplatform
Name: google-cloud-aiplatform
Version: 1.148.1
Summary: Vertex AI API client library
Home-page: https://github.com/googleapis/python-aiplatform
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: C:\Projects\aiops-library\mlops\experiments\custom-job-url\.venv\Lib\site-packages
Requires: docstring_parser, google-api-core, google-auth, google-cloud-bigquery, google-cloud-resource-manager, google-cloud-storage, google-genai, packaging, proto-plus, protobuf, pydantic, typing_extensions
Required-by:
- ```
#### Steps to reproduce
1. make a minimal job and run it
2. click on the url printed by library
3. get 404
#### Code example
```python
import google.cloud.aiplatform as aip
PROJECT = "<my project>"
LOCATION = "europe-west1"
SERVICE_ACCOUNT = "<my SA>.iam.gserviceaccount.com"
NETWORK = "projects/<project id>/global/networks/<our network>"
IMAGE = "<some region>-docker.pkg.dev/<rest of docker image>"
aip.init(project=PROJECT, location=LOCATION)
job = aip.CustomContainerTrainingJob(
display_name="custom-job-url-poc",
container_uri=IMAGE,
staging_bucket="gs://<some path>"
)
job.run(
machine_type="e2-standard-4",
service_account=SERVICE_ACCOUNT,
network=NETWORK,
sync=True, # wait so the polling loop runs and logs the "View backing custom job:" URL
)
Training Output directory:
gs://<bucket>
View Training:
https://console.cloud.google.com/ai/platform/locations/<region>/training/<id>?project=<project>
CustomContainerTrainingJob projects/<project>/locations/europe-west1/trainingPipelines/<id> current state:
3
View backing custom job:
https://console.cloud.google.com/ai/platform/locations/<region>/training/<id>?project=<project>
CustomContainerTrainingJob projects/612572874785/locations/europe-west1/trainingPipelines/<id> current state:
3
CustomContainerTrainingJob projects/612572874785/locations/europe-west1/trainingPipelines/<id> current state:
3
CustomContainerTrainingJob projects/612572874785/locations/europe-west1/trainingPipelines/<id> current state:
Environment details
Python 3.14.4pip 26.0.1 from C:\... (python 3.14)google-cloud-aiplatformversion:Output
Clicking
https://console.cloud.google.com/ai/platform/locations/<region>/training/<id>?project=<project>redirects me tohttps://console.cloud.google.com/vertex-ai/locations/<region>/training/<id>?project=<project>which returns 404 since the announcement 2 days ago https://cloud.google.com/blog/products/ai-machine-learning/introducing-gemini-enterprise-agent-platform when Vertex AI was renamed to Gemini Enterprise Agent Platform, the url is no longer valid and redirects tohttps://console.cloud.google.com/agent-platform/locations/<region>/training/<id>?project=<project>instead, but apparently the infrastructure can't handle 2 levels of redirection, so it would be better to directly show userhttps://console.cloud.google.com/agent-platform/locations/<region>/training/<id>?project=<project>instead ofhttps://console.cloud.google.com/ai/platform/locations/<region>/training/<id>?project=<project>.