Method: projects.locations.workspaces.optimizers.create

Creates an optimizer .

HTTP request

POST https://cloudoptimization.googleapis.com/v1/{parent}/optimizers

Path parameters

Parameters
parent

string

Required. The parent resource where this optimizer will be created. Format: "projects/{project}/locations/{location}/workspaces/{workspace}"

Query parameters

Parameters
optimizerId

string

The ID to use for the optimizer, which will become the final component of the optimizer's resource name. If not provided, an auto-generated ID is used.

This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. If this field is empty, a unique ID is generated by the server.

Request body

The request body contains an instance of Optimizer.

Response body

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

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.