简体   繁体   English

GCP Vertex AI - gcloud ai endpoints create defined 的返回值是多少?

[英]GCP Vertex AI - what is the return value of gcloud ai endpoints create defined?

Where is the return value of gcloud ai endpoints create defined and documented? gcloud ai endpoints create的返回值在哪里定义和记录?

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.我正在关注 GCP coursera Vertex AI model 监控实验室:Vertex AI Model Monitoring ,任务要求从gcloud ai endpoints create命令 output 获取 model 端点 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 create documentation shows no information of its return value. gcloud ai endpoints create文档没有显示其返回值的信息。

Where is it documented?它在哪里记录?

The command returns long running operation .该命令返回长时间运行的操作 There is also documentation of it in Python , see Returns section.Python中也有它的文档,请参阅返回部分。

See sample curl request for long-running operation:请参阅示例 curl 请求长时间运行的操作:

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注意:OPERATION_NAME 可以根据您的请求通过 API 找到,我的是创建数据集

Result:结果: 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM