---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/clusters/{clustersId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/clusters/{clustersId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/clusters/{clustersId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/clusters/{clustersId}`

## Request

- Base URL: `https://vmwareengine.googleapis.com`
- URL: `https://vmwareengine.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/privateClouds/{privateCloudsId}/clusters/{clustersId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Modifies a `Cluster` resource. Only fields specified in `updateMask` are applied. During operation processing, the resource is temporarily in the `ACTIVE` state before the operation fully completes. For that period of time, you can't update the resource. Use the operation status to determine when the processing fully completes.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `privateCloudsId` string, required
- `clustersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `requestId` string
- `updateMask` string, google-fieldmask
- `validateOnly` boolean

## Request body

- Cluster: A cluster in a private cloud.
  - `autoscalingSettings` AutoscalingSettings: Autoscaling settings define the rules used by VMware Engine to automatically scale-out and scale-in the clusters in a private cloud.
    - `autoscalingPolicies` object: Required. The map with autoscaling policies applied to the cluster. The key is the identifier of the policy. It must meet the following requirements: * Only contains 1-63 alphanumeric characters and hyphens * Begins with an alphabetical character * Ends with a non-hyphen character * Not formatted as a UUID * Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) Currently there map must contain only one element that describes the autoscaling policy for compute nodes.
    - `coolDownPeriod` string, google-duration: Optional. The minimum duration between consecutive autoscale operations. It starts once addition or removal of nodes is fully completed. Defaults to 30 minutes if not specified. Cool down period must be in whole minutes (for example, 30, 31, 50, 180 minutes).
    - `maxClusterNodeCount` integer: Optional. Maximum number of nodes of any type in a cluster. If not specified the default limits apply.
    - `minClusterNodeCount` integer: Optional. Minimum number of nodes of any type in a cluster. If not specified the default limits apply.
  - `createTime` string, google-datetime: Output only. Creation time of this resource.
  - `datastoreMountConfig` DatastoreMountConfig[]: Output only. Configuration of a mounted datastore.
    - `accessMode` 'ACCESS_MODE_UNSPECIFIED' | 'READ_ONLY' | 'READ_WRITE': Optional. The access mode of the NFS volume. Optional. Default value used will be READ_WRITE
    - `datastore` string: Required. The resource name of the datastore to mount. 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/datastores/my-datastore`
    - `datastoreNetwork` DatastoreNetwork: The network configuration for the datastore.
      - `connectionCount` integer: Optional. connection_count is used to set multiple connections from NFS client on ESXi host to NFS server. A higher number of connections results in better performance on datastores. In MountDatastore API by default max 4 connections are configured. User can set value of connection_count between 1 to 4. Connection_count is supported from vsphere 8.0u1 for earlier version 1 connection count is set on the ESXi hosts.
      - `mtu` integer: Optional. MTU value is set on the VMKernel adapter for the NFS traffic. By default standard 1500 MTU size is set in MountDatastore API which is good for typical setups. However google VPC networks supports jumbo MTU 8896. We recommend to tune this value based on the NFS traffic performance. Performance can be determined using benchmarking I/O tools like fio (Flexible I/O Tester) utility.
      - `networkPeering` string: Output only. The resource name of the network peering, used to access the file share by clients on private cloud. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. e.g. projects/my-project/locations/us-central1/networkPeerings/my-network-peering
      - `subnet` string: Required. The resource name of the subnet Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. e.g. projects/my-project/locations/us-central1/subnets/my-subnet
    - `fileShare` string: Output only. File share name.
    - `nfsVersion` 'NFS_VERSION_UNSPECIFIED' | 'NFS_V3': Optional. The NFS protocol supported by the NFS volume. Default value used will be NFS_V3
    - `servers` string[]: Output only. Server IP addresses of the NFS volume. For NFS 3, you can only provide a single server IP address or DNS names.
  - `management` boolean: Output only. True if the cluster is a management cluster; false otherwise. There can only be one management cluster in a private cloud and it has to be the first one.
  - `name` string: Output only. Identifier. The resource name of this cluster. 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/clusters/my-cluster`
  - `nodeTypeConfigs` object: Required. The map of cluster node types in this cluster, where the key is canonical identifier of the node type (corresponds to the `NodeType`).
  - `placementGroup` string: Optional. The identifier of the placement group for cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group.
  - `state` 'STATE_UNSPECIFIED' | 'ACTIVE' | 'CREATING' | 'UPDATING' | 'DELETING' | 'REPAIRING': Output only. State of the resource.
  - `stretchedClusterConfig` StretchedClusterConfig: Configuration of a stretched cluster.
    - `preferredLocation` string: Required. Zone that will remain operational when connection between the two zones is lost. Specify the resource name or ID of a zone that belongs to the region of the private cloud. For example: `projects/{project}/locations/europe-west3-a` or `europe-west3-a`, where `{project}` can either be a project number or a project ID.
    - `preferredLocationPlacementGroup` string: Optional. The identifier of the placement group for preferred location cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group.
    - `secondaryLocation` string: Required. Additional zone for a higher level of availability and load balancing. Specify the resource name or ID of a zone that belongs to the region of the private cloud. For example: `projects/{project}/locations/europe-west3-b` or `europe-west3-b`, where `{project}` can either be a project number or a project ID.
    - `secondaryLocationPlacementGroup` string: Optional. The identifier of the placement group for secondary location cluster nodes. A placement group is an internal Google identifier for a group of resources that are physically located within the same fault domain. If provided, nodes for this cluster are placed within the specified placement group. If this field is omitted, the system selects an appropriate placement group.
  - `uid` string: Output only. System-generated unique identifier for the resource.
  - `updateTime` string, google-datetime: Output only. Last update time of this resource.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

[API](https://skmtc.dev/google/apis/vmwareengine.md) - [All operations](https://skmtc.dev/google/apis/vmwareengine/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/vmwareengine/revisions/fe35a276b8e1?raw)
