v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13134345498.3 KB
organizations

Creates a TargetServer in the specified environment.

post/v1/{+parent}/targetservers

Path parameters

parentstring required

Required. The parent environment name under which the TargetServer will be created. Must be of the form organizations/{org}/environments/{env}.

Query parameters

namestring

Optional. The ID to give the TargetServer. This will overwrite the value in TargetServer.

Request body

portinteger

Required. The port number this target connects to on the given host. Value must be between 1 and 65535, inclusive.

descriptionstring

Optional. A human-readable description of this TargetServer.

namestring

Required. The resource id of this target server. Values must match the regular expression

hoststring

Required. The host name this target connects to. Value must be a valid hostname as described by RFC-1123.

isEnabledboolean

Optional. Enabling/disabling a TargetServer is useful when TargetServers are used in load balancing configurations, and one or more TargetServers need to taken out of rotation periodically. Defaults to true.

protocol'PROTOCOL_UNSPECIFIED' | 'HTTP' | 'HTTP2' | 'GRPC_TARGET' | 'GRPC' | 'EXTERNAL_CALLOUT'

Immutable. The protocol used by this TargetServer.

Response

Successful response