Updates the specified CustomDomain.

Scopes

You will need authorization for at least one of the following scopes to make a valid call:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/firebase

If unset, the scope for this method defaults to https://www.googleapis.com/auth/cloud-platform. You can set the scope for this method like this: firebasehosting1-beta1 --scope <scope> projects sites-custom-domains-patch ...

Required Scalar Argument

  • <name> (string)
    • Output only. The fully-qualified name of the CustomDomain.

Required Request Value

The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure. In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.

For example, a structure like this:

CustomDomain:
  annotations: { string: string }
  cert:
    create-time: string
    expire-time: string
    state: string
    type: string
    verification:
      dns:
        check-time: string
      http:
        check-error:
          code: integer
          message: string
        desired: string
        discovered: string
        last-check-time: string
        path: string
  cert-preference: string
  create-time: string
  delete-time: string
  etag: string
  expire-time: string
  host-state: string
  labels: { string: string }
  name: string
  ownership-state: string
  reconciling: boolean
  redirect-target: string
  required-dns-updates:
    check-time: string
  update-time: string

can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.

  • -r . annotations=key=elitr
    • Annotations you can add to leave both human- and machine-readable metadata about your CustomDomain.
    • the value will be associated with the given key
  • cert create-time=sed
    • Output only. The certificate's creation time. For TEMPORARY certs this is the time Hosting first generated challenges for your domain name. For all other cert types, it's the time the actual cert was created.
  • expire-time=no
    • Output only. The certificate's expiration time. After this time, the cert can no longer be used to provide secure communication between Hosting and your site's visitors.
  • state=nonumy
    • Output only. The state of the certificate. Only the CERT_ACTIVE and CERT_EXPIRING_SOON states provide SSL coverage for a domain name. If the state is PROPAGATING and Hosting had an active cert for the domain name before, that formerly-active cert provides SSL coverage for the domain name until the current cert propagates.
  • type=at
    • Output only. The certificate's type.
  • verification.dns check-time=sadipscing

    • The last time Hosting checked your custom domain's DNS records.
  • ..http.check-error code=69

    • The status code, which should be an enum value of google.rpc.Code.
  • message=dolores

    • A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  • .. desired=sadipscing

    • Output only. A text string to serve at the path.
  • discovered=erat
    • Output only. Whether Hosting was able to find the required file contents on the specified path during its last check.
  • last-check-time=aliquyam
    • Output only. The last time Hosting systems checked for the file contents.
  • path=amet

    • Output only. The path to the file.
  • .... cert-preference=est

    • A field that lets you specify which SSL certificate type Hosting creates for your domain name. Spark plan custom domains only have access to the GROUPED cert type, while Blaze plan domains can select any option.
  • create-time=et
    • Output only. The custom domain's create time.
  • delete-time=sea
    • Output only. The time the CustomDomain was deleted; null for custom domains that haven't been deleted. Deleted custom domains persist for approximately 30 days, after which time Hosting removes them completely. To restore a deleted custom domain, make an UndeleteCustomDomain request.
  • etag=consetetur
    • Output only. A string that represents the current state of the CustomDomain and allows you to confirm its initial state in requests that would modify it. Use the tag to ensure consistency when making UpdateCustomDomain, DeleteCustomDomain, and UndeleteCustomDomain requests.
  • expire-time=consetetur
    • Output only. The minimum time before a soft-deleted CustomDomain is completely removed from Hosting; null for custom domains that haven't been deleted.
  • host-state=stet
    • Output only. The HostState of the domain name this CustomDomain refers to.
  • labels=key=est
    • Labels used for extra metadata and/or filtering.
    • the value will be associated with the given key
  • name=aliquyam
    • Output only. The fully-qualified name of the CustomDomain.
  • ownership-state=elitr
    • Output only. The OwnershipState of the domain name this CustomDomain refers to.
  • reconciling=true
    • Output only. A field that, if true, indicates that Hosting's systems are attmepting to make the custom domain's state match your preferred state. This is most frequently true when initially provisioning a CustomDomain after a CreateCustomDomain request or when creating a new SSL certificate to match an updated cert_preference after an UpdateCustomDomain request.
  • redirect-target=est
    • A domain name that this CustomDomain should direct traffic towards. If specified, Hosting will respond to requests against this custom domain with an HTTP 301 code, and route traffic to the specified redirect_target instead.
  • required-dns-updates check-time=sit

    • The last time Hosting checked your custom domain's DNS records.
  • .. update-time=sed

    • Output only. The last time the CustomDomain was updated.

About Cursors

The cursor position is key to comfortably set complex nested structures. The following rules apply:

  • The cursor position is always set relative to the current one, unless the field name starts with the . character. Fields can be nested such as in -r f.s.o .
  • The cursor position is set relative to the top-level structure if it starts with ., e.g. -r .s.s
  • You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify -r struct.sub_struct=bar.
  • You can move the cursor one level up by using ... Each additional . moves it up one additional level. E.g. ... would go three levels up.

Optional Output Flags

The method's return value a JSON encoded structure, which will be written to standard output by default.

  • -o out
    • out specifies the destination to which to write the server's result to. It will be a JSON-encoded structure. The destination may be - to indicate standard output, or a filepath that is to contain the received bytes. If unset, it defaults to standard output.

Optional Method Properties

You may set the following properties to further configure the call. Please note that -p is followed by one or more key-value-pairs, and is called like this -p k1=v1 k2=v2 even though the listing below repeats the -p for completeness.

  • -p allow-missing=boolean

    • If true, Hosting creates the CustomDomain if it doesn't already exist.
  • -p update-mask=string

    • The set of field names from your CustomDomain that you want to update. A field will be overwritten if, and only if, it's in the mask. If you don't provide a mask, Hosting updates the entire CustomDomain.
  • -p validate-only=boolean

    • If true, Hosting validates that it's possible to complete your request but doesn't actually create or update the CustomDomain.

Optional General Properties

The following properties can configure any call, and are not specific to this method.

  • -p $-xgafv=string

    • V1 error format.
  • -p access-token=string

    • OAuth access token.
  • -p alt=string

    • Data format for response.
  • -p callback=string

    • JSONP
  • -p fields=string

    • Selector specifying which fields to include in a partial response.
  • -p key=string

    • API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
  • -p oauth-token=string

    • OAuth 2.0 token for the current user.
  • -p pretty-print=boolean

    • Returns response with indentations and line breaks.
  • -p quota-user=string

    • Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
  • -p upload-type=string

    • Legacy upload protocol for media (e.g. "media", "multipart").
  • -p upload-protocol=string

    • Upload protocol for media (e.g. "raw", "multipart").