Method: namespaces.domainmappings.create

Create a new domain mapping.

HTTP request

POST https://run.googleapis.com/apis/domains.cloudrun.com/v1/{parent}/domainmappings

Path parameters

Parameters
parent

string

Required. The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace} with the project ID or number. It takes the form namespaces/{namespace}. For example: namespaces/PROJECT_ID It takes the form namespaces/{namespace}.

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

  • run.domainmappings.create

Query parameters

Parameters
dryRun

string

Indicates that the server should validate the request and populate default values without persisting the request. Supported values: all

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:

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

For more information, see the Authentication Overview.