v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1346116213.0 KB
projects

Creates a new ServiceLbPolicy in a given project and location.

post/v1/{+parent}/serviceLbPolicies

Path parameters

parentstring required

Required. The parent resource of the ServiceLbPolicy. Must be in the format projects/{project}/locations/{location}.

Query parameters

serviceLbPolicyIdstring

Required. Short name of the ServiceLbPolicy resource to be created. E.g. for resource name projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}. the id is value of {service_lb_policy_name}

Request body

namestring

Identifier. Name of the ServiceLbPolicy resource. It matches pattern projects/{project}/locations/{location}/serviceLbPolicies/{service_lb_policy_name}.

createTimestring google-datetime

Output only. The timestamp when this resource was created.

updateTimestring google-datetime

Output only. The timestamp when this resource was last updated.

labelsobject

Optional. Set of label tags associated with the ServiceLbPolicy resource.

descriptionstring

Optional. A free-text description of the resource. Max length 1024 characters.

loadBalancingAlgorithm'LOAD_BALANCING_ALGORITHM_UNSPECIFIED' | 'SPRAY_TO_WORLD' | 'SPRAY_TO_REGION' | 'WATERFALL_BY_REGION' | 'WATERFALL_BY_ZONE'

Optional. The type of load balancing algorithm to be used. The default behavior is WATERFALL_BY_REGION.

Response

Successful response