Resource Type: gcompute_backend_service

Defined in:
lib/puppet/type/gcompute_backend_service.rb
Providers:
google

Overview

Creates a BackendService resource in the specified project using the data included in the request.

Properties

  • affinity_cookie_ttl_sec

    Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day. When the load balancing scheme is INTERNAL, this field is not used.

  • backends

    The list of backends that serve this BackendService.

  • cdn_policy

    Cloud CDN configuration for this BackendService.

  • connection_draining

    Settings for connection draining

  • creation_timestamp

    Creation timestamp in RFC3339 text format. (output only)

  • description

    An optional description of this resource.

  • enable_cdn

    If true, enable Cloud CDN for this BackendService. When the load balancing scheme is INTERNAL, this field is not used.

    Supported values:
    • true
    • false
  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • health_checks

    The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required. For internal load balancing, a URL to a HealthCheck resource must be specified instead.

  • id

    The unique identifier for the resource. (output only)

  • name (namevar)

    Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z](*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

  • port_name

    Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL. When the load balancing scheme is INTERNAL, this field is not used.

  • protocol

    The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. For internal load balancing, the possible values are TCP and UDP, and the default is TCP.

    Supported values:
    • HTTP
    • HTTPS
    • TCP
    • SSL
  • region

    A reference to Region resource

  • session_affinity

    Type of session affinity to use. The default is NONE. When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. When the protocol is UDP, this field is not used.

    Supported values:
    • NONE
    • CLIENT_IP
    • GENERATED_COOKIE
    • CLIENT_IP_PROTO
    • CLIENT_IP_PORT_PROTO
  • timeout_sec

    How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. Valid range is [1, 86400].

Parameters

  • credential

    A gauth_credential name to be used to authenticate with Google Cloud Platform.

  • name

    The name of the BackendService.

  • project

    A Google Cloud Platform project to manage.

  • provider

    The specific backend to use for this ‘gcompute_backend_service` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.