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