# REST Resource: projects.locations.lbRouteExtensions

- [Resource: LbRouteExtension](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions#LbRouteExtension)
  - [JSON representation](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions#LbRouteExtension.SCHEMA_REPRESENTATION)
- [Methods](https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions#METHODS_SUMMARY)

## Resource: LbRouteExtension

`LbRouteExtension` is a resource that lets you control where traffic is routed to for a given request.

| JSON representation |
|---|
| ``` { "name": string, "createTime": string, "updateTime": string, "description": string, "labels": { string: string, ... }, "forwardingRules": [ string ], "extensionChains": [ { object (`https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/ExtensionChain`) } ], "loadBalancingScheme": enum (`https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/LoadBalancingScheme`), "metadata": { object } } ``` |

| Fields ||
|---|---|
| `name` | `string` Required. Identifier. Name of the `LbRouteExtension` resource in the following format: `projects/{project}/locations/{location}/lbRouteExtensions/{lbRouteExtension}`. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The timestamp when the resource was created. 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"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The timestamp when the resource was updated. 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"`. |
| `description` | `string` Optional. A human-readable description of the resource. |
| `labels` | `map (key: string, value: string)` Optional. Set of labels associated with the `LbRouteExtension` resource. The format must comply with [the requirements for labels](https://cloud.google.com/compute/docs/labeling-resources#requirements) for Google Cloud resources. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `forwardingRules[]` | `string` Required. A list of references to the forwarding rules to which this service extension is attached to. At least one forwarding rule is required. There can be only one `LbRouteExtension` resource per forwarding rule. |
| `extensionChains[]` | ``object (`https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/ExtensionChain`)`` Required. A set of ordered extension chains that contain the match conditions and extensions to execute. Match conditions for each extension chain are evaluated in sequence for a given request. The first extension chain that has a condition that matches the request is executed. Any subsequent extension chains do not execute. Limited to 5 extension chains per resource. |
| `loadBalancingScheme` | ``enum (`https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/LoadBalancingScheme`)`` Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service). |
| `metadata` | ``object (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Struct` format)`` Optional. The metadata provided here will be included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata will be available under the namespace `com.google.lb_route_extension.<resourceName>`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions/create` | Creates a new `LbRouteExtension` resource in a given project and location. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions/delete` | Deletes the specified `LbRouteExtension` resource. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions/get` | Gets details of the specified `LbRouteExtension` resource. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions/list` | Lists `LbRouteExtension` resources in a given project and location. |
| ### `https://docs.cloud.google.com/service-mesh/v1.21/docs/reference/network-services/rest/v1/projects.locations.lbRouteExtensions/patch` | Updates the parameters of the specified `LbRouteExtension` resource. |