Stay organized with collections
Save and categorize content based on your preferences.
Creates a new backend in a given project and location.
HTTP request
POST https://firebaseapphosting.googleapis.com/v1/{parent=projects/*/locations/*}/backends
The URL uses gRPC Transcoding syntax. To know more about valid error responses that can be thrown by this HTTP request, please refer to the service error catalog
Path parameters
Parameters
parent
string
Required. A parent name of the form projects/{project}/locations/{locationId}.
Query parameters
Parameters
backendId
string
Required. Id of the backend. Also used as the service ID for Cloud Run, and as part of the default domain name.
requestId
string
Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
validateOnly
boolean
Optional. 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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-04 UTC."],[],[],null,["Creates a new backend in a given project and location.\n\nHTTP request\n\n`POST https://firebaseapphosting.googleapis.com/v1/{parent=projects/*/locations/*}/backends`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax. To know more about valid error responses that can be thrown by this HTTP request, please refer to the [service error catalog](/docs/reference/apphosting/rest/v1/errors)\n\nPath parameters\n\nQuery parameters\n\nRequest body\n\nThe request body contains an instance of [Backend](/docs/reference/apphosting/rest/v1/projects.locations.backends#Backend).\n\nResponse body\n\nIf successful, the response body contains a newly created instance of [Operation](/docs/reference/apphosting/rest/v1/projects.locations.operations#Operation).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).\n\nIAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `firebaseapphosting.backends.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nSee also Firebase App Hosting's [IAM Permissions](https://firebase.google.com/docs/projects/iam/permissions#app-hosting) and [Predefined IAM Roles](https://firebase.google.com/docs/projects/iam/roles-predefined-product)."]]