projects

Creates a new ServiceLbPolicy in a given project and location.

post/v1/{+parent}/serviceLbPolicies

Request

  • Base URL: https://networkservices.googleapis.com
  • URL: https://networkservices.googleapis.com/v1/{+parent}/serviceLbPolicies
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)

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

createTimestring google-datetime

Output only. The timestamp when this resource was created.

descriptionstring

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

labelsobject

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

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.

namestring

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

updateTimestring google-datetime

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

Response

Successful response

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status