Creates a new Service in a given project and location.
HTTP request
POST https://run.googleapis.com/v2/{parent}/services
Path parameters
Parameters
parent
string
Required. The location and project in which this service should be created. Format: projects/{project}/locations/{location}, where {project} can be project id or number. Only lowercase characters, digits, and hyphens. It takes the form projects/{project}/locations/{location}.
Authorization requires the following IAM permission on the specified resource parent:
run.services.create
Query parameters
Parameters
serviceId
string
Required. The unique identifier for the Service. It must begin with letter, and cannot end with hyphen; must contain fewer than 50 characters. The name of the service becomes {parent}/services/{serviceId}.
validateOnly
boolean
Indicates that the request should be validated and default values populated, without persisting the request or creating any resources.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[],[],null,["# Method: projects.locations.services.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates a new Service in a given project and location.\n\n### HTTP request\n\n`POST https://run.googleapis.com/v2/{parent}/services`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [Service](/run/docs/reference/rest/v2/projects.locations.services#Service).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/run/docs/reference/rest/v2/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]