pcluster list-image-log-streams - Amazon ParallelCluster
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

pcluster list-image-log-streams

检索与映像关联的日志流的列表。

pcluster list-image-log-streams [-h] --image-id IMAGE_ID [--next-token NEXT_TOKEN] [--debug] [--query QUERY] [--region REGION]

命名的参数

-h, --help

显示 pcluster list-image-log-streams 的帮助文本。

--image-id, -i IMAGE_ID

指定映像的 ID。

--debug

启用调试日志记录。

--next-token NEXT_TOKEN

指定用于分页请求的令牌。

--query QUERY

指定要对输出执行的 JMESPath 查询。

--region, -r REGION

指定 Amazon Web Services 区域 要使用的。 Amazon Web Services 区域 必须使用AWS_DEFAULT_REGION环境变量、~/.aws/config文件[default]部分中的region设置或--region参数来指定。

使用 Amazon ParallelCluster 版本 3.1.2 的示例:

$ pcluster list-image-log-streams --image-id custom-alinux2-image --region us-east-1 --query 'logStreams[*].logStreamName' [ "3.0.0/1", "3.1.2/1" ]