gcloud alpha tasks create-app-engine-task

NAME
gcloud alpha tasks create-app-engine-task - create and add a task that targets App Engine
SYNOPSIS
gcloud alpha tasks create-app-engine-task[TASK_ID]--queue=QUEUE[--header=HEADER_FIELD:HEADER_VALUE][--location=LOCATION][--method=METHOD][--routing=KEY:VALUE,[…]][--schedule-time=SCHEDULE_TIME][--url=URL][--payload-content=PAYLOAD_CONTENT    |--payload-file=PAYLOAD_FILE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) Create and add a task that targets App Engine.
EXAMPLES
To create a task:
gcloudalphataskscreate-app-engine-task--queue=my-queue--url=/handler-pathmy-task
POSITIONAL ARGUMENTS
[TASK_ID]
The task to create.

If not specified then the system will generate a random unique task ID.Explicitly specifying a task ID enables task de-duplication. If a task's ID isidentical to that of an existing task or a task that was deleted or completedrecently then the call will fail.

Because there is an extra lookup cost to identify duplicate task names, taskscreated with IDs have significantly increased latency. Using hashed strings forthe task ID or for the prefix of the task ID is recommended.

REQUIRED FLAGS
--queue=QUEUE
The queue the task belongs to.
OPTIONAL FLAGS
--header=HEADER_FIELD:HEADER_VALUE
An HTTP request header. Header values can contain commas. This flag can berepeated. Repeated header fields will have their values overridden.
--location=LOCATION
The location where we want to manage the queue or task. If not specified, usesthe location of the current project's App Engine app if there is an associatedapp.
--method=METHOD
The HTTP method to use for the request. If not specified, "POST" will be used.
--routing=KEY:VALUE,[…]
The route to be used for this task. KEY must be at least one of: [service,version, instance]. Any missing keys will use the default.

Routing can be overridden by the queue-level--routing-overrideflag.

--schedule-time=SCHEDULE_TIME
The time when the task is scheduled to be first attempted. Defaults to "now" ifnot specified.
--url=URL
The relative URL of the request. Must begin with "/" and must be a valid HTTPrelative URL. It can contain a path and query string arguments. If notspecified, then the root path "/" will be used.
At most one of these can be specified:
--payload-content=PAYLOAD_CONTENT
Data payload used by the task worker to process the task.
--payload-file=PAYLOAD_FILE
File containing data payload used by the task worker to process the task.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudtaskscreate-app-engine-task
gcloudbetataskscreate-app-engine-task

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.