Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firebasehosting/v1beta1.getVersion
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Get the specified version that has been created for the specified site. This can include versions that were created for the default live channel or for any active preview channels for the specified site.
Using getVersion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVersion(args: GetVersionArgs, opts?: InvokeOptions): Promise<GetVersionResult>
function getVersionOutput(args: GetVersionOutputArgs, opts?: InvokeOptions): Output<GetVersionResult>def get_version(project: Optional[str] = None,
                site_id: Optional[str] = None,
                version_id: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetVersionResult
def get_version_output(project: Optional[pulumi.Input[str]] = None,
                site_id: Optional[pulumi.Input[str]] = None,
                version_id: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetVersionResult]func LookupVersion(ctx *Context, args *LookupVersionArgs, opts ...InvokeOption) (*LookupVersionResult, error)
func LookupVersionOutput(ctx *Context, args *LookupVersionOutputArgs, opts ...InvokeOption) LookupVersionResultOutput> Note: This function is named LookupVersion in the Go SDK.
public static class GetVersion 
{
    public static Task<GetVersionResult> InvokeAsync(GetVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetVersionResult> Invoke(GetVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
public static Output<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:firebasehosting/v1beta1:getVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- site_id str
- version_id str
- project str
getVersion Result
The following output properties are available:
- Config
Pulumi.Google Native. Firebase Hosting. V1Beta1. Outputs. Serving Config Response 
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- CreateTime string
- The time at which the version was created.
- CreateUser Pulumi.Google Native. Firebase Hosting. V1Beta1. Outputs. Acting User Response 
- Identifies the user who created the version.
- DeleteTime string
- The time at which the version was DELETED.
- DeleteUser Pulumi.Google Native. Firebase Hosting. V1Beta1. Outputs. Acting User Response 
- Identifies the user who DELETEDthe version.
- FileCount string
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- FinalizeTime string
- The time at which the version was FINALIZED.
- FinalizeUser Pulumi.Google Native. Firebase Hosting. V1Beta1. Outputs. Acting User Response 
- Identifies the user who FINALIZEDthe version.
- Labels Dictionary<string, string>
- The labels used for extra metadata and/or filtering.
- Name string
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- Status string
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- VersionBytes string
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
- Config
ServingConfig Response 
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- CreateTime string
- The time at which the version was created.
- CreateUser ActingUser Response 
- Identifies the user who created the version.
- DeleteTime string
- The time at which the version was DELETED.
- DeleteUser ActingUser Response 
- Identifies the user who DELETEDthe version.
- FileCount string
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- FinalizeTime string
- The time at which the version was FINALIZED.
- FinalizeUser ActingUser Response 
- Identifies the user who FINALIZEDthe version.
- Labels map[string]string
- The labels used for extra metadata and/or filtering.
- Name string
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- Status string
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- VersionBytes string
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
- config
ServingConfig Response 
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- createTime String
- The time at which the version was created.
- createUser ActingUser Response 
- Identifies the user who created the version.
- deleteTime String
- The time at which the version was DELETED.
- deleteUser ActingUser Response 
- Identifies the user who DELETEDthe version.
- fileCount String
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- finalizeTime String
- The time at which the version was FINALIZED.
- finalizeUser ActingUser Response 
- Identifies the user who FINALIZEDthe version.
- labels Map<String,String>
- The labels used for extra metadata and/or filtering.
- name String
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- status String
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- versionBytes String
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
- config
ServingConfig Response 
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- createTime string
- The time at which the version was created.
- createUser ActingUser Response 
- Identifies the user who created the version.
- deleteTime string
- The time at which the version was DELETED.
- deleteUser ActingUser Response 
- Identifies the user who DELETEDthe version.
- fileCount string
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- finalizeTime string
- The time at which the version was FINALIZED.
- finalizeUser ActingUser Response 
- Identifies the user who FINALIZEDthe version.
- labels {[key: string]: string}
- The labels used for extra metadata and/or filtering.
- name string
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- status string
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- versionBytes string
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
- config
ServingConfig Response 
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- create_time str
- The time at which the version was created.
- create_user ActingUser Response 
- Identifies the user who created the version.
- delete_time str
- The time at which the version was DELETED.
- delete_user ActingUser Response 
- Identifies the user who DELETEDthe version.
- file_count str
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- finalize_time str
- The time at which the version was FINALIZED.
- finalize_user ActingUser Response 
- Identifies the user who FINALIZEDthe version.
- labels Mapping[str, str]
- The labels used for extra metadata and/or filtering.
- name str
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- status str
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- version_bytes str
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
- config Property Map
- The configuration for the behavior of the site. This configuration exists in the firebase.jsonfile.
- createTime String
- The time at which the version was created.
- createUser Property Map
- Identifies the user who created the version.
- deleteTime String
- The time at which the version was DELETED.
- deleteUser Property Map
- Identifies the user who DELETEDthe version.
- fileCount String
- The total number of files associated with the version. This value is calculated after a version is FINALIZED.
- finalizeTime String
- The time at which the version was FINALIZED.
- finalizeUser Property Map
- Identifies the user who FINALIZEDthe version.
- labels Map<String>
- The labels used for extra metadata and/or filtering.
- name String
- The fully-qualified resource name for the version, in the format: sites/ SITE_ID/versions/VERSION_ID This name is provided in the response body when you call CreateVersion.
- status String
- The deploy status of the version. For a successful deploy, call CreateVersionto make a new version (CREATEDstatus), upload all desired files to the version, then update the version to theFINALIZEDstatus. Note that if you leave the version in theCREATEDstate for more than 12 hours, the system will automatically mark the version asABANDONED. You can also change the status of a version toDELETEDby callingDeleteVersion.
- versionBytes String
- The total stored bytesize of the version. This value is calculated after a version is FINALIZED.
Supporting Types
ActingUserResponse  
CloudRunRewriteResponse   
- Region string
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- ServiceId string
- User-defined ID of the Cloud Run service.
- Tag string
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
- Region string
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- ServiceId string
- User-defined ID of the Cloud Run service.
- Tag string
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
- region String
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- serviceId String
- User-defined ID of the Cloud Run service.
- tag String
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
- region string
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- serviceId string
- User-defined ID of the Cloud Run service.
- tag string
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
- region str
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- service_id str
- User-defined ID of the Cloud Run service.
- tag str
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
- region String
- Optional. User-provided region where the Cloud Run service is hosted. Defaults to us-central1if not supplied.
- serviceId String
- User-defined ID of the Cloud Run service.
- tag String
- Optional. User-provided TrafficConfig tag to send traffic to. When omitted, traffic is sent to the service-wide URI
HeaderResponse 
I18nConfigResponse  
- Root string
- The user-supplied path where country and language specific content will be looked for within the public directory.
- Root string
- The user-supplied path where country and language specific content will be looked for within the public directory.
- root String
- The user-supplied path where country and language specific content will be looked for within the public directory.
- root string
- The user-supplied path where country and language specific content will be looked for within the public directory.
- root str
- The user-supplied path where country and language specific content will be looked for within the public directory.
- root String
- The user-supplied path where country and language specific content will be looked for within the public directory.
RedirectResponse 
- Glob string
- The user-supplied glob to match against the request URL path.
- Location string
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- Regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- StatusCode int
- The status HTTP code to return in the response. It must be a valid 3xx status code.
- Glob string
- The user-supplied glob to match against the request URL path.
- Location string
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- Regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- StatusCode int
- The status HTTP code to return in the response. It must be a valid 3xx status code.
- glob String
- The user-supplied glob to match against the request URL path.
- location String
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- regex String
- The user-supplied RE2 regular expression to match against the request URL path.
- statusCode Integer
- The status HTTP code to return in the response. It must be a valid 3xx status code.
- glob string
- The user-supplied glob to match against the request URL path.
- location string
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- statusCode number
- The status HTTP code to return in the response. It must be a valid 3xx status code.
- glob str
- The user-supplied glob to match against the request URL path.
- location str
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- regex str
- The user-supplied RE2 regular expression to match against the request URL path.
- status_code int
- The status HTTP code to return in the response. It must be a valid 3xx status code.
- glob String
- The user-supplied glob to match against the request URL path.
- location String
- The value to put in the HTTP location header of the response. The location can contain capture group values from the pattern using a :prefix to identify the segment and an optional*to capture the rest of the URL. For example: "glob": "/:capture*", "statusCode": 301, "location": "https://example.com/foo/:capture"
- regex String
- The user-supplied RE2 regular expression to match against the request URL path.
- statusCode Number
- The status HTTP code to return in the response. It must be a valid 3xx status code.
RewriteResponse 
- DynamicLinks bool
- The request will be forwarded to Firebase Dynamic Links.
- Function string
- The function to proxy requests to. Must match the exported function name exactly.
- FunctionRegion string
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- Glob string
- The user-supplied glob to match against the request URL path.
- Path string
- The URL path to rewrite the request to.
- Regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- Run
Pulumi.Google Native. Firebase Hosting. V1Beta1. Inputs. Cloud Run Rewrite Response 
- The request will be forwarded to Cloud Run.
- DynamicLinks bool
- The request will be forwarded to Firebase Dynamic Links.
- Function string
- The function to proxy requests to. Must match the exported function name exactly.
- FunctionRegion string
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- Glob string
- The user-supplied glob to match against the request URL path.
- Path string
- The URL path to rewrite the request to.
- Regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- Run
CloudRun Rewrite Response 
- The request will be forwarded to Cloud Run.
- dynamicLinks Boolean
- The request will be forwarded to Firebase Dynamic Links.
- function String
- The function to proxy requests to. Must match the exported function name exactly.
- functionRegion String
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- glob String
- The user-supplied glob to match against the request URL path.
- path String
- The URL path to rewrite the request to.
- regex String
- The user-supplied RE2 regular expression to match against the request URL path.
- run
CloudRun Rewrite Response 
- The request will be forwarded to Cloud Run.
- dynamicLinks boolean
- The request will be forwarded to Firebase Dynamic Links.
- function string
- The function to proxy requests to. Must match the exported function name exactly.
- functionRegion string
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- glob string
- The user-supplied glob to match against the request URL path.
- path string
- The URL path to rewrite the request to.
- regex string
- The user-supplied RE2 regular expression to match against the request URL path.
- run
CloudRun Rewrite Response 
- The request will be forwarded to Cloud Run.
- dynamic_links bool
- The request will be forwarded to Firebase Dynamic Links.
- function str
- The function to proxy requests to. Must match the exported function name exactly.
- function_region str
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- glob str
- The user-supplied glob to match against the request URL path.
- path str
- The URL path to rewrite the request to.
- regex str
- The user-supplied RE2 regular expression to match against the request URL path.
- run
CloudRun Rewrite Response 
- The request will be forwarded to Cloud Run.
- dynamicLinks Boolean
- The request will be forwarded to Firebase Dynamic Links.
- function String
- The function to proxy requests to. Must match the exported function name exactly.
- functionRegion String
- Optional. Specify a Cloud region for rewritten Functions invocations. If not provided, defaults to us-central1.
- glob String
- The user-supplied glob to match against the request URL path.
- path String
- The URL path to rewrite the request to.
- regex String
- The user-supplied RE2 regular expression to match against the request URL path.
- run Property Map
- The request will be forwarded to Cloud Run.
ServingConfigResponse  
- AppAssociation string
- How to handle well known App Association files.
- CleanUrls bool
- Defines whether to drop the file extension from uploaded files.
- Headers
List<Pulumi.Google Native. Firebase Hosting. V1Beta1. Inputs. Header Response> 
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- I18n
Pulumi.Google Native. Firebase Hosting. V1Beta1. Inputs. I18n Config Response 
- Optional. Defines i18n rewrite behavior.
- Redirects
List<Pulumi.Google Native. Firebase Hosting. V1Beta1. Inputs. Redirect Response> 
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- Rewrites
List<Pulumi.Google Native. Firebase Hosting. V1Beta1. Inputs. Rewrite Response> 
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- TrailingSlash stringBehavior 
- Defines how to handle a trailing slash in the URL path.
- AppAssociation string
- How to handle well known App Association files.
- CleanUrls bool
- Defines whether to drop the file extension from uploaded files.
- Headers
[]HeaderResponse 
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- I18n
I18nConfig Response 
- Optional. Defines i18n rewrite behavior.
- Redirects
[]RedirectResponse 
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- Rewrites
[]RewriteResponse 
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- TrailingSlash stringBehavior 
- Defines how to handle a trailing slash in the URL path.
- appAssociation String
- How to handle well known App Association files.
- cleanUrls Boolean
- Defines whether to drop the file extension from uploaded files.
- headers
List<HeaderResponse> 
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- i18n
I18nConfig Response 
- Optional. Defines i18n rewrite behavior.
- redirects
List<RedirectResponse> 
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- rewrites
List<RewriteResponse> 
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- trailingSlash StringBehavior 
- Defines how to handle a trailing slash in the URL path.
- appAssociation string
- How to handle well known App Association files.
- cleanUrls boolean
- Defines whether to drop the file extension from uploaded files.
- headers
HeaderResponse[] 
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- i18n
I18nConfig Response 
- Optional. Defines i18n rewrite behavior.
- redirects
RedirectResponse[] 
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- rewrites
RewriteResponse[] 
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- trailingSlash stringBehavior 
- Defines how to handle a trailing slash in the URL path.
- app_association str
- How to handle well known App Association files.
- clean_urls bool
- Defines whether to drop the file extension from uploaded files.
- headers
Sequence[HeaderResponse] 
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- i18n
I18nConfig Response 
- Optional. Defines i18n rewrite behavior.
- redirects
Sequence[RedirectResponse] 
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- rewrites
Sequence[RewriteResponse] 
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- trailing_slash_ strbehavior 
- Defines how to handle a trailing slash in the URL path.
- appAssociation String
- How to handle well known App Association files.
- cleanUrls Boolean
- Defines whether to drop the file extension from uploaded files.
- headers List<Property Map>
- An array of objects, where each object specifies a URL pattern that, if matched to the request URL path, triggers Hosting to apply the specified custom response headers.
- i18n Property Map
- Optional. Defines i18n rewrite behavior.
- redirects List<Property Map>
- An array of objects (called redirect rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.
- rewrites List<Property Map>
- An array of objects (called rewrite rules), where each rule specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond as if the service were given the specified destination URL.
- trailingSlash StringBehavior 
- Defines how to handle a trailing slash in the URL path.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.