Method: namespaces.domainmappings.create

Create a new domain mapping.

HTTP request

POST https://{endpoint}/apis/{parent}/domainmappings

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

Path parameters



The namespace in which the domain mapping 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:


Request body

The request body contains an instance of DomainMapping.

Response body

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

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.