1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 14:56:05 +00:00

gcloud: Wed Sep 14 09:28:28 UTC 2022

This commit is contained in:
Automated 2022-09-14 09:28:28 +00:00
parent e7bec9b31b
commit 8f4214beb2
Failed to extract signature
148 changed files with 5778 additions and 334 deletions

View file

@ -22,6 +22,28 @@ EXAMPLES
$ gcloud beta batch jobs submit \
projects/foo/locations/us-central1/jobs/bar --config=config.json
To submit the job through stdin with json job config and name
projects/foo/locations/us-central1/jobs/bar, run:
$ gcloud beta batch jobs submit \
projects/foo/locations/us-central1/jobs/bar --config=-
then input json job config via stdin
{
json job config
}
To submit the job through HereDoc with json job config and name
projects/foo/locations/us-central1/jobs/bar, run:
$ gcloud beta batch jobs submit \
projects/foo/locations/us-central1/jobs/bar --config=- << EOF
{
json job config
}
EOF
POSITIONAL ARGUMENTS
Job resource - The Batch job resource. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes
@ -52,7 +74,9 @@ REQUIRED FLAGS
At least one of these must be specified:
--config=CONFIG
The JSON file of the job config.
The file path of the JSON job config JSON. It also supports direct
input from stdin with '-' or HereDoc (in shells with HereDoc support
like Bash) with '- <<DELIMITER'.
Either specify the config file for the job or the first runnable in the
task spec. Specify either a script file or container arguments for the

View file

@ -27,7 +27,7 @@ COMMANDS
(BETA) Show details of a task.
list
(BETA) List tasks for a specified Batch task_group.
(BETA) List tasks for a specified Batch job.
NOTES
This command is currently in beta and might change without notice. This

View file

@ -1,54 +1,50 @@
NAME
gcloud beta batch tasks list - list tasks for a specified Batch task_group
gcloud beta batch tasks list - list tasks for a specified Batch job
SYNOPSIS
gcloud beta batch tasks list (TASK_GROUP : --job=JOB --location=LOCATION)
gcloud beta batch tasks list (--job=JOB : --location=LOCATION)
[--filter=EXPRESSION] [--limit=LIMIT] [--page-size=PAGE_SIZE]
[--sort-by=[FIELD,...]] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) This command can fail for the following reasons:
▪ The task_group specified does not exist.
▪ The active account does not have permission to access the given
task_group.
(BETA) Currently, since Batch only supports one taskGroup, group0, the
command takes --job as the required argument and will list all tasks in
group0 of the job.
This command can fail for the following reasons:
▪ The job specified does not exist.
▪ The active account does not have permission to access the given job
EXAMPLES
To print all tasks under the task_group with name
projects/foo/locations/us-central1/jobs/bar/taskGroups/group0, run:
To print all tasks in the group0 of job with name
projects/foo/locations/us-central1/jobs/bar, run:
$ gcloud beta batch tasks list \
projects/foo/locations/us-central1/jobs/bar/taskGroups/group0
projects/foo/locations/us-central1/jobs/bar
POSITIONAL ARGUMENTS
Task group resource - The Batch task_group resource. The arguments in this
group can be used to specify the attributes of this resource. (NOTE) Some
attributes are not given arguments in this group but can be set in other
ways. To set the project attribute:
◆ provide the argument TASK_GROUP on the command line with a fully
specified name;
REQUIRED FLAGS
Job resource - The Batch job resource. The arguments in this group can be
used to specify the attributes of this resource. (NOTE) Some attributes
are not given arguments in this group but can be set in other ways. To set
the project attribute:
◆ provide the argument --job on the command line with a fully specified
name;
◆ provide the argument --project on the command line;
◆ set the property core/project.
This must be specified.
TASK_GROUP
ID of the task_group or fully qualified identifier for the
task_group. To set the task_group attribute:
▸ provide the argument TASK_GROUP on the command line.
This positional argument must be specified if any of the other
arguments in this group are specified.
--job=JOB
The job ID for the task_group. To set the job attribute:
▸ provide the argument TASK_GROUP on the command line with a fully
specified name;
ID of the job or fully qualified identifier for the job. To set the
job attribute:
▸ provide the argument --job on the command line.
This flag argument must be specified if any of the other arguments in
this group are specified.
--location=LOCATION
Google Cloud location for the task_group. To set the location
attribute:
▸ provide the argument TASK_GROUP on the command line with a fully
Google Cloud location for the job. To set the location attribute:
▸ provide the argument --job on the command line with a fully
specified name;
▸ provide the argument --location on the command line.