Method: projects.sites.customDomains.undelete

Undeletes the specified CustomDomain if it has been soft-deleted. Hosting retains soft-deleted custom domains for around 30 days before permanently deleting them.

HTTP request

POST https://firebasehosting.googleapis.com/v1beta1/{name=projects/*/sites/*/customDomains/*}:undelete

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the CustomDomain to delete.

Request body

The request body contains data with the following structure:

JSON representation
{
  "validateOnly": boolean,
  "etag": string
}
Fields
validateOnly

boolean

If true, Hosting validates that it's possible to complete your request but doesn't actually delete the CustomDomain.

etag

string

A tag that represents the state of the CustomDomain as you know it. If present, the supplied tag must match the current value on your CustomDomain, or the request fails.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.