GCP顶点AI- gcloud AI端点创建的返回值是什么?

发布于 2025-01-25 04:07:19 字数 800 浏览 2 评论 0 原文

gcloud AI端点的返回值在哪里定义和记录?

我关注GCP COURSERA VETEX AI模型监视实验:vertex ai模型监视,任务要求从 gcloud ai端点创建命令输出中获取模型端点ID。

# Deploy your model to the endpoint
ENDPOINT_NAME = "churn"
output = !gcloud --quiet beta ai endpoints create --display-name=$ENDPOINT_NAME --format="value(name)"
print("endpoint output: ", output)

ENDPOINT = output[-1]
ENDPOINT_ID = # TODO: Your code goes here

gcloud ai endpoints创建文档文档没有显示其回报值的信息。

它在哪里记录?

Where is the return value of gcloud ai endpoints create defined and documented?

I am following GCP coursera Vertex AI model monitoring Lab: Vertex AI Model Monitoring and the task is asking to get the model endpoint ID from the gcloud ai endpoints create command output.

# Deploy your model to the endpoint
ENDPOINT_NAME = "churn"
output = !gcloud --quiet beta ai endpoints create --display-name=$ENDPOINT_NAME --format="value(name)"
print("endpoint output: ", output)

ENDPOINT = output[-1]
ENDPOINT_ID = # TODO: Your code goes here

gcloud ai endpoints create documentation shows no information of its return value.

Where is it documented?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

做个ˇ局外人 2025-02-01 04:07:19

该命令返回长期运行操作。 There is also documentation of it in

请参阅示例curl 请求 - 运行操作:

curl -X GET \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
"https://LOCATION-aiplatform.googleapis.com/v1/OPERATION_NAME"

注意:可以在您的请求中通过API找到操作,我的是创建数据集

结果:

The command returns long running operation. There is also documentation of it in Python, see Returns section.

See sample curl request for long-running operation:

curl -X GET \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
"https://LOCATION-aiplatform.googleapis.com/v1/OPERATION_NAME"

note: OPERATION_NAME can be found on your request via API, mine was creation of dataset

Result:
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文