REST Resource: projects.sites

Resource: Site

A Site represents a Firebase Hosting site.

JSON representation
{
  "name": string,
  "defaultUrl": string,
  "appId": string,
  "labels": {
    string: string,
    ...
  },
  "type": enum (Type)
}
Fields
name

string

Output only. The fully-qualified resource name of the Hosting site, in the format:

projects/PROJECT_IDENTIFIER/sites/SITE_ID

PROJECT_IDENTIFIER: the Firebase project's ProjectNumber (recommended) or its ProjectId.
Learn more about using project identifiers in Google's AIP 2510 standard.

defaultUrl

string

Output only. The default URL for the Hosting site.

appId

string

Optional. The ID of a Web App associated with the Hosting site.

labels

map (key: string, value: string)

Optional. User-specified labels for the Hosting site.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

type

enum (Type)

Output only. The type of Hosting site.

Every Firebase project has a DEFAULT_SITE, which is created when Hosting is provisioned for the project. All additional sites are USER_SITE.

Type

The possible types of a site.

Enums
TYPE_UNSPECIFIED Unknown state, likely the result of an error on the backend.
DEFAULT_SITE The default Hosting site that is provisioned when a Firebase project is created.
USER_SITE A Hosting site that the user created.

Methods

create

Creates a new Hosting Site in the specified parent Firebase project.

delete

Deletes the specified Hosting Site from the specified parent Firebase project.

get

Gets the specified Hosting Site.

list

Lists each Hosting Site associated with the specified parent Firebase project.

patch

Updates attributes of the specified Hosting Site.