---
title: "POST /v1/{+parent}/loggingServers"
method: POST
path: "/v1/{+parent}/loggingServers"
tags: ["projects"]
---

# POST /v1/{+parent}/loggingServers

`POST /v1/{+parent}/loggingServers`

Create a new logging server for a given private cloud.

## Path parameters

- `parent` string, required

## Query parameters

- `loggingServerId` string
- `requestId` string

## Request body

- LoggingServer — Logging server to receive vCenter or ESXi logs.
  - `port` integer — Required. Port number at which the logging server receives logs.
  - `protocol` 'PROTOCOL_UNSPECIFIED' | 'UDP' | 'TCP' | 'TLS' | 'SSL' | 'RELP' — Required. Protocol used by vCenter to send logs to a logging server.
  - `name` string — Output only. The resource name of this logging server. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: `projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server`
  - `uid` string — Output only. System-generated unique identifier for the resource.
  - `createTime` string, google-datetime — Output only. Creation time of this resource.
  - `updateTime` string, google-datetime — Output only. Last update time of this resource.
  - `hostname` string — Required. Fully-qualified domain name (FQDN) or IP Address of the logging server.
  - `sourceType` 'SOURCE_TYPE_UNSPECIFIED' | 'ESXI' | 'VCSA' — Required. The type of component that produces logs that will be forwarded to this logging server.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) · [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/vmwareengine/revisions/23816cc0f25a/schema)
