Creates a queue.
Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not.
WARNING: Using this method may have unintended side effects if you are using an App Engine queue.yaml
or queue.xml
file to manage your queues. Read Overview of Queue Management and queue.yaml before using this method.
HTTP request
POST https://cloudtasks.googleapis.com/v2/{parent=projects/*/locations/*}/queues
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The location name in which the queue will be created. For example: The list of allowed locations can be obtained by calling Cloud Tasks' implementation of Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains an instance of Queue
.
Response body
If successful, the response body contains a newly created instance of Queue
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-tasks
For more information, see the Authentication Overview.