Creates a workspace to manage a group of resources.
HTTP request
POST https://cloudoptimization.googleapis.com/v1/{parent}/workspaces
Path parameters
Parameters | |
---|---|
parent |
Required. The parent resource where this workspace will be created. Format: "projects/{project}/locations/{location}" |
Query parameters
Parameters | |
---|---|
workspaceId |
The ID to use for the workspace, which will become the final component of the workspace'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 will be generated by the server. |
Request body
The request body contains an instance of Workspace
.
Response body
If successful, the response body contains a newly created instance of Workspace
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.