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

# POST /v1/{+parent}/hcxActivationKeys

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

Creates a new HCX activation key in a given private cloud.

## Path parameters

- `parent` string, required

## Query parameters

- `hcxActivationKeyId` string
- `requestId` string

## Request body

- HcxActivationKey — HCX activation key. A default key is created during private cloud provisioning, but this behavior is subject to change and you should always verify active keys. Use VmwareEngine.ListHcxActivationKeys to retrieve existing keys and VmwareEngine.CreateHcxActivationKey to create new ones.
  - `state` 'STATE_UNSPECIFIED' | 'AVAILABLE' | 'CONSUMED' | 'CREATING' — Output only. State of HCX activation key.
  - `createTime` string, google-datetime — Output only. Creation time of HCX activation key.
  - `name` string — Output only. The resource name of this HcxActivationKey. 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/privateClouds/my-cloud/hcxActivationKeys/my-key`
  - `uid` string — Output only. System-generated unique identifier for the resource.
  - `activationKey` string — Output only. HCX activation key.

## 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)
