通过api命令获取应用引擎信息(Get app engine info via api commands)

编程入门 行业动态 更新时间:2024-10-21 14:23:51
通过api命令获取应用引擎信息(Get app engine info via api commands)

好像谷歌云的shell命令是超级有限的。

我可以看到有关使用appcfg.py从app引擎上传和下载代码的文档,但是获取有关它的基本信息的命令是什么?

有列表服务命令吗? 或者运行版本命令? 我仍然不明白我上传的应用引擎代码在哪里。

有什么命令可以“戳”app引擎的东西?

Seems like google cloud's shell commands are super limited.

I can see docs about using appcfg.py to upload and download code from app engine, but what are the commands to just get basic info about it?

Is there a list services command? Or a get running versions command? I still don't understand where the app engine code I upload lives.

What are the commands to just "poke" app engine stuff?

最满意答案

要获取有关appcfg.py可以执行的操作的信息:

$ appcfg.py help Usage: appcfg.py help <action> appcfg.py: error: Expected a single action argument. Must be one of: ... list_versions: List all uploaded versions for an app. ... $ appcfg.py help list_versions Usage: appcfg.py [options] list_versions [directory] List all uploaded versions for an app. The 'list_versions' command outputs the uploaded versions for each module of an application in YAML. The YAML is in formatted as an associative array, mapping module_ids to the list of versions uploaded for that module. The default version will be first in the list. ...

这个天比appcfg.py和官方推荐的更新一些(但仍未涵盖控制台的所有内容)是来自Cloud SDK的gcloud CLI(特别是GAE应用程序的gcloud app子菜单)。

您上传的代码存在于云端:) Donno究竟在哪里,但您可以在Console的Debug页面中看到它。 无法从云外壳的VM(AFAIK)直接访问。 如果您想在云外壳中访问它,则需要将其从您的应用程序下载到“cloud homedir”(使用其中一个实用程序)。

至于“戳”,你必须非常具体,因为不同类型的戳是以不同的方式完成的(很多只在GUI中)。 可能更好地在一个单独的问题(或问题)中做到这一点。

To get info about what appcfg.py can do:

$ appcfg.py help Usage: appcfg.py help <action> appcfg.py: error: Expected a single action argument. Must be one of: ... list_versions: List all uploaded versions for an app. ... $ appcfg.py help list_versions Usage: appcfg.py [options] list_versions [directory] List all uploaded versions for an app. The 'list_versions' command outputs the uploaded versions for each module of an application in YAML. The YAML is in formatted as an associative array, mapping module_ids to the list of versions uploaded for that module. The default version will be first in the list. ...

A bit newer than appcfg.py and the officially recommended one these days (but still not covering all the stuff from the Console) is the gcloud CLI from the Cloud SDK (and in particular the gcloud app submenu for GAE apps).

Your uploaded code lives in the cloud :) Donno exactly where, but you can see it in the Console's Debug page. Not directly accessible from the cloud shell's VM (AFAIK). If you want to access it in the cloud shell you need to download it from your app to your "cloud homedir" (using one of the 2 utilities).

As for "poking", you have to be very specific as different kinds of poking are done in different ways (many in the GUI only). Probably better to do it in a separate question (or questions).

更多推荐

本文发布于:2023-08-06 08:04:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1446056.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令   引擎   信息   api   commands

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!