1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. firebase
  5. HostingRelease
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

gcp.firebase.HostingRelease

Explore with Pulumi AI

gcp logo
Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Example Usage

    Firebasehosting Release In Site

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.firebase.HostingSite("default", {
        project: "my-project-name",
        siteId: "site-id",
    });
    const defaultHostingVersion = new gcp.firebase.HostingVersion("default", {
        siteId: _default.siteId,
        config: {
            redirects: [{
                glob: "/google/**",
                statusCode: 302,
                location: "https://www.google.com",
            }],
        },
    });
    const defaultHostingRelease = new gcp.firebase.HostingRelease("default", {
        siteId: _default.siteId,
        versionName: defaultHostingVersion.name,
        message: "Test release",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.firebase.HostingSite("default",
        project="my-project-name",
        site_id="site-id")
    default_hosting_version = gcp.firebase.HostingVersion("default",
        site_id=default.site_id,
        config=gcp.firebase.HostingVersionConfigArgs(
            redirects=[gcp.firebase.HostingVersionConfigRedirectArgs(
                glob="/google/**",
                status_code=302,
                location="https://www.google.com",
            )],
        ))
    default_hosting_release = gcp.firebase.HostingRelease("default",
        site_id=default.site_id,
        version_name=default_hosting_version.name,
        message="Test release")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
    			Project: pulumi.String("my-project-name"),
    			SiteId:  pulumi.String("site-id"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultHostingVersion, err := firebase.NewHostingVersion(ctx, "default", &firebase.HostingVersionArgs{
    			SiteId: _default.SiteId,
    			Config: &firebase.HostingVersionConfigArgs{
    				Redirects: firebase.HostingVersionConfigRedirectArray{
    					&firebase.HostingVersionConfigRedirectArgs{
    						Glob:       pulumi.String("/google/**"),
    						StatusCode: pulumi.Int(302),
    						Location:   pulumi.String("https://www.google.com"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = firebase.NewHostingRelease(ctx, "default", &firebase.HostingReleaseArgs{
    			SiteId:      _default.SiteId,
    			VersionName: defaultHostingVersion.Name,
    			Message:     pulumi.String("Test release"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Firebase.HostingSite("default", new()
        {
            Project = "my-project-name",
            SiteId = "site-id",
        });
    
        var defaultHostingVersion = new Gcp.Firebase.HostingVersion("default", new()
        {
            SiteId = @default.SiteId,
            Config = new Gcp.Firebase.Inputs.HostingVersionConfigArgs
            {
                Redirects = new[]
                {
                    new Gcp.Firebase.Inputs.HostingVersionConfigRedirectArgs
                    {
                        Glob = "/google/**",
                        StatusCode = 302,
                        Location = "https://www.google.com",
                    },
                },
            },
        });
    
        var defaultHostingRelease = new Gcp.Firebase.HostingRelease("default", new()
        {
            SiteId = @default.SiteId,
            VersionName = defaultHostingVersion.Name,
            Message = "Test release",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.firebase.HostingSite;
    import com.pulumi.gcp.firebase.HostingSiteArgs;
    import com.pulumi.gcp.firebase.HostingVersion;
    import com.pulumi.gcp.firebase.HostingVersionArgs;
    import com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs;
    import com.pulumi.gcp.firebase.HostingRelease;
    import com.pulumi.gcp.firebase.HostingReleaseArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new HostingSite("default", HostingSiteArgs.builder()        
                .project("my-project-name")
                .siteId("site-id")
                .build());
    
            var defaultHostingVersion = new HostingVersion("defaultHostingVersion", HostingVersionArgs.builder()        
                .siteId(default_.siteId())
                .config(HostingVersionConfigArgs.builder()
                    .redirects(HostingVersionConfigRedirectArgs.builder()
                        .glob("/google/**")
                        .statusCode(302)
                        .location("https://www.google.com")
                        .build())
                    .build())
                .build());
    
            var defaultHostingRelease = new HostingRelease("defaultHostingRelease", HostingReleaseArgs.builder()        
                .siteId(default_.siteId())
                .versionName(defaultHostingVersion.name())
                .message("Test release")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:firebase:HostingSite
        properties:
          project: my-project-name
          siteId: site-id
      defaultHostingVersion:
        type: gcp:firebase:HostingVersion
        name: default
        properties:
          siteId: ${default.siteId}
          config:
            redirects:
              - glob: /google/**
                statusCode: 302
                location: https://www.google.com
      defaultHostingRelease:
        type: gcp:firebase:HostingRelease
        name: default
        properties:
          siteId: ${default.siteId}
          versionName: ${defaultHostingVersion.name}
          message: Test release
    

    Firebasehosting Release In Channel

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.firebase.HostingSite("default", {
        project: "my-project-name",
        siteId: "site-with-channel",
    });
    const defaultHostingVersion = new gcp.firebase.HostingVersion("default", {
        siteId: _default.siteId,
        config: {
            redirects: [{
                glob: "/google/**",
                statusCode: 302,
                location: "https://www.google.com",
            }],
        },
    });
    const defaultHostingChannel = new gcp.firebase.HostingChannel("default", {
        siteId: _default.siteId,
        channelId: "channel-id",
    });
    const defaultHostingRelease = new gcp.firebase.HostingRelease("default", {
        siteId: _default.siteId,
        channelId: defaultHostingChannel.channelId,
        versionName: defaultHostingVersion.name,
        message: "Test release in channel",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.firebase.HostingSite("default",
        project="my-project-name",
        site_id="site-with-channel")
    default_hosting_version = gcp.firebase.HostingVersion("default",
        site_id=default.site_id,
        config=gcp.firebase.HostingVersionConfigArgs(
            redirects=[gcp.firebase.HostingVersionConfigRedirectArgs(
                glob="/google/**",
                status_code=302,
                location="https://www.google.com",
            )],
        ))
    default_hosting_channel = gcp.firebase.HostingChannel("default",
        site_id=default.site_id,
        channel_id="channel-id")
    default_hosting_release = gcp.firebase.HostingRelease("default",
        site_id=default.site_id,
        channel_id=default_hosting_channel.channel_id,
        version_name=default_hosting_version.name,
        message="Test release in channel")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
    			Project: pulumi.String("my-project-name"),
    			SiteId:  pulumi.String("site-with-channel"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultHostingVersion, err := firebase.NewHostingVersion(ctx, "default", &firebase.HostingVersionArgs{
    			SiteId: _default.SiteId,
    			Config: &firebase.HostingVersionConfigArgs{
    				Redirects: firebase.HostingVersionConfigRedirectArray{
    					&firebase.HostingVersionConfigRedirectArgs{
    						Glob:       pulumi.String("/google/**"),
    						StatusCode: pulumi.Int(302),
    						Location:   pulumi.String("https://www.google.com"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultHostingChannel, err := firebase.NewHostingChannel(ctx, "default", &firebase.HostingChannelArgs{
    			SiteId:    _default.SiteId,
    			ChannelId: pulumi.String("channel-id"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = firebase.NewHostingRelease(ctx, "default", &firebase.HostingReleaseArgs{
    			SiteId:      _default.SiteId,
    			ChannelId:   defaultHostingChannel.ChannelId,
    			VersionName: defaultHostingVersion.Name,
    			Message:     pulumi.String("Test release in channel"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Firebase.HostingSite("default", new()
        {
            Project = "my-project-name",
            SiteId = "site-with-channel",
        });
    
        var defaultHostingVersion = new Gcp.Firebase.HostingVersion("default", new()
        {
            SiteId = @default.SiteId,
            Config = new Gcp.Firebase.Inputs.HostingVersionConfigArgs
            {
                Redirects = new[]
                {
                    new Gcp.Firebase.Inputs.HostingVersionConfigRedirectArgs
                    {
                        Glob = "/google/**",
                        StatusCode = 302,
                        Location = "https://www.google.com",
                    },
                },
            },
        });
    
        var defaultHostingChannel = new Gcp.Firebase.HostingChannel("default", new()
        {
            SiteId = @default.SiteId,
            ChannelId = "channel-id",
        });
    
        var defaultHostingRelease = new Gcp.Firebase.HostingRelease("default", new()
        {
            SiteId = @default.SiteId,
            ChannelId = defaultHostingChannel.ChannelId,
            VersionName = defaultHostingVersion.Name,
            Message = "Test release in channel",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.firebase.HostingSite;
    import com.pulumi.gcp.firebase.HostingSiteArgs;
    import com.pulumi.gcp.firebase.HostingVersion;
    import com.pulumi.gcp.firebase.HostingVersionArgs;
    import com.pulumi.gcp.firebase.inputs.HostingVersionConfigArgs;
    import com.pulumi.gcp.firebase.HostingChannel;
    import com.pulumi.gcp.firebase.HostingChannelArgs;
    import com.pulumi.gcp.firebase.HostingRelease;
    import com.pulumi.gcp.firebase.HostingReleaseArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new HostingSite("default", HostingSiteArgs.builder()        
                .project("my-project-name")
                .siteId("site-with-channel")
                .build());
    
            var defaultHostingVersion = new HostingVersion("defaultHostingVersion", HostingVersionArgs.builder()        
                .siteId(default_.siteId())
                .config(HostingVersionConfigArgs.builder()
                    .redirects(HostingVersionConfigRedirectArgs.builder()
                        .glob("/google/**")
                        .statusCode(302)
                        .location("https://www.google.com")
                        .build())
                    .build())
                .build());
    
            var defaultHostingChannel = new HostingChannel("defaultHostingChannel", HostingChannelArgs.builder()        
                .siteId(default_.siteId())
                .channelId("channel-id")
                .build());
    
            var defaultHostingRelease = new HostingRelease("defaultHostingRelease", HostingReleaseArgs.builder()        
                .siteId(default_.siteId())
                .channelId(defaultHostingChannel.channelId())
                .versionName(defaultHostingVersion.name())
                .message("Test release in channel")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:firebase:HostingSite
        properties:
          project: my-project-name
          siteId: site-with-channel
      defaultHostingVersion:
        type: gcp:firebase:HostingVersion
        name: default
        properties:
          siteId: ${default.siteId}
          config:
            redirects:
              - glob: /google/**
                statusCode: 302
                location: https://www.google.com
      defaultHostingChannel:
        type: gcp:firebase:HostingChannel
        name: default
        properties:
          siteId: ${default.siteId}
          channelId: channel-id
      defaultHostingRelease:
        type: gcp:firebase:HostingRelease
        name: default
        properties:
          siteId: ${default.siteId}
          channelId: ${defaultHostingChannel.channelId}
          versionName: ${defaultHostingVersion.name}
          message: Test release in channel
    

    Firebasehosting Release Disable

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const _default = new gcp.firebase.HostingSite("default", {
        project: "my-project-name",
        siteId: "site-id",
    });
    const defaultHostingRelease = new gcp.firebase.HostingRelease("default", {
        siteId: _default.siteId,
        type: "SITE_DISABLE",
        message: "Take down site",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    default = gcp.firebase.HostingSite("default",
        project="my-project-name",
        site_id="site-id")
    default_hosting_release = gcp.firebase.HostingRelease("default",
        site_id=default.site_id,
        type="SITE_DISABLE",
        message="Take down site")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/firebase"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := firebase.NewHostingSite(ctx, "default", &firebase.HostingSiteArgs{
    			Project: pulumi.String("my-project-name"),
    			SiteId:  pulumi.String("site-id"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = firebase.NewHostingRelease(ctx, "default", &firebase.HostingReleaseArgs{
    			SiteId:  _default.SiteId,
    			Type:    pulumi.String("SITE_DISABLE"),
    			Message: pulumi.String("Take down site"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Gcp.Firebase.HostingSite("default", new()
        {
            Project = "my-project-name",
            SiteId = "site-id",
        });
    
        var defaultHostingRelease = new Gcp.Firebase.HostingRelease("default", new()
        {
            SiteId = @default.SiteId,
            Type = "SITE_DISABLE",
            Message = "Take down site",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.firebase.HostingSite;
    import com.pulumi.gcp.firebase.HostingSiteArgs;
    import com.pulumi.gcp.firebase.HostingRelease;
    import com.pulumi.gcp.firebase.HostingReleaseArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var default_ = new HostingSite("default", HostingSiteArgs.builder()        
                .project("my-project-name")
                .siteId("site-id")
                .build());
    
            var defaultHostingRelease = new HostingRelease("defaultHostingRelease", HostingReleaseArgs.builder()        
                .siteId(default_.siteId())
                .type("SITE_DISABLE")
                .message("Take down site")
                .build());
    
        }
    }
    
    resources:
      default:
        type: gcp:firebase:HostingSite
        properties:
          project: my-project-name
          siteId: site-id
      defaultHostingRelease:
        type: gcp:firebase:HostingRelease
        name: default
        properties:
          siteId: ${default.siteId}
          type: SITE_DISABLE
          message: Take down site
    

    Create HostingRelease Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new HostingRelease(name: string, args: HostingReleaseArgs, opts?: CustomResourceOptions);
    @overload
    def HostingRelease(resource_name: str,
                       args: HostingReleaseArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostingRelease(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       site_id: Optional[str] = None,
                       channel_id: Optional[str] = None,
                       message: Optional[str] = None,
                       type: Optional[str] = None,
                       version_name: Optional[str] = None)
    func NewHostingRelease(ctx *Context, name string, args HostingReleaseArgs, opts ...ResourceOption) (*HostingRelease, error)
    public HostingRelease(string name, HostingReleaseArgs args, CustomResourceOptions? opts = null)
    public HostingRelease(String name, HostingReleaseArgs args)
    public HostingRelease(String name, HostingReleaseArgs args, CustomResourceOptions options)
    
    type: gcp:firebase:HostingRelease
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HostingReleaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HostingReleaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HostingReleaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostingReleaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostingReleaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var hostingReleaseResource = new Gcp.Firebase.HostingRelease("hostingReleaseResource", new()
    {
        SiteId = "string",
        ChannelId = "string",
        Message = "string",
        Type = "string",
        VersionName = "string",
    });
    
    example, err := firebase.NewHostingRelease(ctx, "hostingReleaseResource", &firebase.HostingReleaseArgs{
    	SiteId:      pulumi.String("string"),
    	ChannelId:   pulumi.String("string"),
    	Message:     pulumi.String("string"),
    	Type:        pulumi.String("string"),
    	VersionName: pulumi.String("string"),
    })
    
    var hostingReleaseResource = new HostingRelease("hostingReleaseResource", HostingReleaseArgs.builder()        
        .siteId("string")
        .channelId("string")
        .message("string")
        .type("string")
        .versionName("string")
        .build());
    
    hosting_release_resource = gcp.firebase.HostingRelease("hostingReleaseResource",
        site_id="string",
        channel_id="string",
        message="string",
        type="string",
        version_name="string")
    
    const hostingReleaseResource = new gcp.firebase.HostingRelease("hostingReleaseResource", {
        siteId: "string",
        channelId: "string",
        message: "string",
        type: "string",
        versionName: "string",
    });
    
    type: gcp:firebase:HostingRelease
    properties:
        channelId: string
        message: string
        siteId: string
        type: string
        versionName: string
    

    HostingRelease Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The HostingRelease resource accepts the following input properties:

    SiteId string
    Required. The ID of the site to which the release belongs.


    ChannelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    Message string
    The deploy description when the release was created. The value can be up to 512 characters.
    Type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    VersionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    SiteId string
    Required. The ID of the site to which the release belongs.


    ChannelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    Message string
    The deploy description when the release was created. The value can be up to 512 characters.
    Type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    VersionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    siteId String
    Required. The ID of the site to which the release belongs.


    channelId String
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message String
    The deploy description when the release was created. The value can be up to 512 characters.
    type String
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName String
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    siteId string
    Required. The ID of the site to which the release belongs.


    channelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message string
    The deploy description when the release was created. The value can be up to 512 characters.
    type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    site_id str
    Required. The ID of the site to which the release belongs.


    channel_id str
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message str
    The deploy description when the release was created. The value can be up to 512 characters.
    type str
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    version_name str
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    siteId String
    Required. The ID of the site to which the release belongs.


    channelId String
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message String
    The deploy description when the release was created. The value can be up to 512 characters.
    type String
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName String
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HostingRelease resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    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
    ReleaseId string
    The unique identifier for the Release.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    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
    ReleaseId string
    The unique identifier for the Release.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    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
    releaseId String
    The unique identifier for the Release.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    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
    releaseId string
    The unique identifier for the Release.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    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
    release_id str
    The unique identifier for the Release.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    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
    releaseId String
    The unique identifier for the Release.

    Look up Existing HostingRelease Resource

    Get an existing HostingRelease resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: HostingReleaseState, opts?: CustomResourceOptions): HostingRelease
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel_id: Optional[str] = None,
            message: Optional[str] = None,
            name: Optional[str] = None,
            release_id: Optional[str] = None,
            site_id: Optional[str] = None,
            type: Optional[str] = None,
            version_name: Optional[str] = None) -> HostingRelease
    func GetHostingRelease(ctx *Context, name string, id IDInput, state *HostingReleaseState, opts ...ResourceOption) (*HostingRelease, error)
    public static HostingRelease Get(string name, Input<string> id, HostingReleaseState? state, CustomResourceOptions? opts = null)
    public static HostingRelease get(String name, Output<String> id, HostingReleaseState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ChannelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    Message string
    The deploy description when the release was created. The value can be up to 512 characters.
    Name string
    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
    ReleaseId string
    The unique identifier for the Release.
    SiteId string
    Required. The ID of the site to which the release belongs.


    Type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    VersionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    ChannelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    Message string
    The deploy description when the release was created. The value can be up to 512 characters.
    Name string
    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
    ReleaseId string
    The unique identifier for the Release.
    SiteId string
    Required. The ID of the site to which the release belongs.


    Type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    VersionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    channelId String
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message String
    The deploy description when the release was created. The value can be up to 512 characters.
    name String
    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
    releaseId String
    The unique identifier for the Release.
    siteId String
    Required. The ID of the site to which the release belongs.


    type String
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName String
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    channelId string
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message string
    The deploy description when the release was created. The value can be up to 512 characters.
    name string
    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
    releaseId string
    The unique identifier for the Release.
    siteId string
    Required. The ID of the site to which the release belongs.


    type string
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName string
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    channel_id str
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message str
    The deploy description when the release was created. The value can be up to 512 characters.
    name str
    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
    release_id str
    The unique identifier for the Release.
    site_id str
    Required. The ID of the site to which the release belongs.


    type str
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    version_name str
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.
    channelId String
    The ID of the channel to which the release belongs. If not provided, the release will belong to the default "live" channel
    message String
    The deploy description when the release was created. The value can be up to 512 characters.
    name String
    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
    releaseId String
    The unique identifier for the Release.
    siteId String
    Required. The ID of the site to which the release belongs.


    type String
    The type of the release; indicates what happened to the content of the site. There is no need to specify DEPLOY or ROLLBACK type if a version_name is provided. DEPLOY: A version was uploaded to Firebase Hosting and released. Output only. ROLLBACK: The release points back to a previously deployed version. Output only. SITE_DISABLE: The release prevents the site from serving content. Firebase Hosting acts as if the site never existed Possible values are: DEPLOY, ROLLBACK, SITE_DISABLE.
    versionName String
    The unique identifier for a version, in the format: sites/SITE_ID/versions/VERSION_ID. The content of the version specified will be actively displayed on the appropriate URL. The Version must belong to the same site as in the site_id. This parameter must be empty if the type of the release is SITE_DISABLE.

    Import

    Release can be imported using any of these accepted formats:

    • sites/{{site_id}}/channels/{{channel_id}}/releases/{{release_id}}

    • sites/{{site_id}}/releases/{{release_id}}

    • {{site_id}}/{{channel_id}}/{{release_id}}

    • {{site_id}}/{{release_id}}

    When using the pulumi import command, Release can be imported using one of the formats above. For example:

    $ pulumi import gcp:firebase/hostingRelease:HostingRelease default sites/{{site_id}}/channels/{{channel_id}}/releases/{{release_id}}
    
    $ pulumi import gcp:firebase/hostingRelease:HostingRelease default sites/{{site_id}}/releases/{{release_id}}
    
    $ pulumi import gcp:firebase/hostingRelease:HostingRelease default {{site_id}}/{{channel_id}}/{{release_id}}
    
    $ pulumi import gcp:firebase/hostingRelease:HostingRelease default {{site_id}}/{{release_id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v7.20.0 published on Wednesday, Apr 24, 2024 by Pulumi