Method: locations.workforcePools.create

Creates a new WorkforcePool.

You cannot reuse the name of a deleted pool until 30 days after deletion.

HTTP request

POST https://iam.googleapis.com/v1/{location=locations/*}/workforcePools

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
location

string

Optional. The location of the pool to create.

Format: locations/{location}.

Query parameters

Parameters
workforcePoolId

string

Optional. The ID to use for the pool, which becomes the final component of the resource name. The IDs must be a globally unique string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix gcp- is reserved for use by Google, and may not be specified.

Request body

The request body contains an instance of WorkforcePool.

Response body

If successful, the response body contains a newly created instance of Operation.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/iam

For more information, see the Authentication Overview.