projects

Creates a new EndpointPolicy in a given project and location.

post/v1/{+parent}/endpointPolicies

Request

  • Base URL: https://networkservices.googleapis.com
  • URL: https://networkservices.googleapis.com/v1/{+parent}/endpointPolicies
  • 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 EndpointPolicy. Must be in the format projects/*/locations/*.

Query parameters

endpointPolicyIdstring

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

Request body

authorizationPolicystring

Optional. This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints. Refer to Authorization. If this field is not specified, authorization is disabled(no authz checks) for this endpoint.

clientTlsPolicystring

Optional. Deprecated: This field is not used and is a no-op. A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints. More specifically, it is applied to the outgoing traffic from the proxy to the endpoint. This is typically used for sidecar model where the proxy identifies itself as endpoint to the control plane, with the connection between sidecar and endpoint requiring authentication. If this field is not set, authentication is disabled(open). Applicable only when EndpointPolicyType is SIDECAR_PROXY.

createTimestring google-datetime

Output only. The timestamp when the 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 EndpointPolicy resource.

namestring

Identifier. Name of the EndpointPolicy resource. It matches pattern projects/{project}/locations/*/endpointPolicies/{endpoint_policy}.

serverTlsPolicystring

Optional. A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends. If this field is not set, authentication is disabled(open) for this endpoint.

type'ENDPOINT_POLICY_TYPE_UNSPECIFIED' | 'SIDECAR_PROXY' | 'GRPC_SERVER'

Required. The type of endpoint policy. This is primarily used to validate the configuration.

updateTimestring google-datetime

Output only. The timestamp when the resource was updated.

Response

Successful response

Changes