Method: namespaces.services.create

Create a service.

HTTP request

POST https://{endpoint}/apis/serving.knative.dev/v1/{parent}/services

Where {endpoint} is one of the supported service endpoints.

Path parameters

Parameters
parent

string

The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. It takes the form namespaces/{namespace_id}.

Authorization requires the following Google IAM permission on the specified resource parent:

  • run.services.create

Request body

The request body contains an instance of Service.

Response body

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

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.