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.
[[["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: namespaces.domainmappings.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\nCreate a new domain mapping.\n\n### HTTP request\n\n`POST https://run.googleapis.com/apis/domains.cloudrun.com/v1/{parent}/domainmappings`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [DomainMapping](/run/docs/reference/rest/v1/namespaces.domainmappings#DomainMapping).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [DomainMapping](/run/docs/reference/rest/v1/namespaces.domainmappings#DomainMapping).\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)."]]