REST Resource: projects.locations.backends.traffic Stay organized with collections Save and categorize content based on your preferences.
Resource: Traffic
Controls traffic configuration for the backend.
| JSON representation |
|---|
{"name":string,"current":{object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the backend's traffic. Format:
|
current |
Output only. Current state of traffic allocation for the backend. When setting |
reconciling |
Output only. A field that, if true, indicates that the system is working to make the backend's |
createTime |
Output only. Time at which the backend was created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Time at which the backend was last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. Unstructured key value map that can be used to organize and categorize objects. An object containing a list of |
annotations |
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. An object containing a list of |
etag |
Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource. |
uid |
Output only. System-assigned, unique identifier. |
Union field
| |
target |
Set to manually control the desired traffic for the backend. This will cause |
rolloutPolicy |
A rollout policy specifies how new builds and automatic deployments are created. |
TrafficSet
A list of traffic splits that together represent where traffic is being routed.
| JSON representation |
|---|
{"splits":[{object ( |
| Fields | |
|---|---|
splits[] |
Required. The list of traffic splits. |
TrafficSplit
The traffic allocation for the backend.
| JSON representation |
|---|
{"build":string,"percent":integer} |
| Fields | |
|---|---|
build |
Required. The build that traffic is being routed to. |
percent |
Required. The percentage of traffic to send to the build. Currently must be 100% or 0%. |
RolloutPolicy
The policy for how builds and rollouts are triggered and rolled out.
| JSON representation |
|---|
{"disabled":boolean,"disabledTime":string,// Union field |
| Fields | |
|---|---|
disabled |
Optional. A flag that, if true, prevents rollouts from being created via this RolloutPolicy. |
disabledTime |
Output only. If Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Union fieldtrigger. Specifies the type of codebase event that can trigger a new build.trigger can be only one of the following: | |
codebaseBranch |
If set, specifies a branch that triggers a new build to be started with this policy. Otherwise, no automatic rollouts will happen. |
Methods | |
|---|---|
| Gets information about a backend's traffic. |
| Updates a backend's traffic. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-04 UTC.