REST Resource: sites.channels.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 either of the following formats:

  • sites/SITE_ID/releases/RELEASE_ID

  • sites/SITE_ID/channels/CHANNEL_ID/releases/RELEASE_ID

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

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, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "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 appropriate URL(s).

get

Gets the specified release for a site or channel.

list

Lists the releases that have been created for the specified site or channel.