Go to console

REST Resource: sites.releases

Resource: Release

A Release is a particular collection of configurations and files that is set to be public at a particular time.

JSON representation
{
  "name": string,
  "version": {
    object(Version)
  },
  "type": enum(Type),
  "releaseTime": string,
  "releaseUser": {
    object(ActingUser)
  },
  "message": string
}
Fields
name

string

Output only. The unique identifier for the release, in the format:

sites/site-name/releases/releaseID

This name is provided in the response body when you call the releases.create endpoint.

version

object(Version)

Output only. The configuration and content that was released.

type

enum(Type)

Explains the reason for the release.
Specify a value for this field only when creating a SITE_DISABLE type release.

releaseTime

string (Timestamp format)

Output only. The time at which the version is set to be public.

A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

releaseUser

object(ActingUser)

Output only. Identifies the user who created the release.

message

string

The deploy description when the release was created. The value can be up to 512 characters.

Type

The type of the release; indicates what happened to the content of the site.

Enums
TYPE_UNSPECIFIED An unspecified type. Indicates that a version was released.
This is the default value when no other type is explicitly specified.
DEPLOY A version was uploaded to Firebase Hosting and released.
ROLLBACK The release points back to a previously deployed version.
SITE_DISABLE The release prevents the site from serving content. Firebase Hosting acts as if the site never existed.

Methods

create

Creates a new release which makes the content of the specified version actively display on the site.

list

Lists the releases that have been created on the specified site.