Skip to main content

hcx_activation_keys

Creates, updates, deletes, gets or lists a hcx_activation_keys resource.

Overview

Namehcx_activation_keys
TypeResource
Idgoogle.vmwareengine.hcx_activation_keys

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput 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
activationKeystringOutput only. HCX activation key.
createTimestring (google-datetime)Output only. Creation time of HCX activation key.
statestringOutput only. State of HCX activation key.
uidstringOutput only. System-generated unique identifier for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateCloudsId, hcxActivationKeysIdRetrieves a HcxActivationKey resource by its resource name.
listselectprojectsId, locationsId, privateCloudsIdpageSize, pageTokenLists HcxActivationKey resources in a given private cloud.
createinsertprojectsId, locationsId, privateCloudsIdhcxActivationKeyId, requestIdCreates a new HCX activation key in a given private cloud.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hcxActivationKeysIdstring
locationsIdstring
privateCloudsIdstring
projectsIdstring
hcxActivationKeyIdstring
pageSizeinteger (int32)
pageTokenstring
requestIdstring

SELECT examples

Retrieves a HcxActivationKey resource by its resource name.

SELECT
name,
activationKey,
createTime,
state,
uid
FROM google.vmwareengine.hcx_activation_keys
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateCloudsId = '{{ privateCloudsId }}' -- required
AND hcxActivationKeysId = '{{ hcxActivationKeysId }}' -- required;

INSERT examples

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

INSERT INTO google.vmwareengine.hcx_activation_keys (
projectsId,
locationsId,
privateCloudsId,
hcxActivationKeyId,
requestId
)
SELECT
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateCloudsId }}',
'{{ hcxActivationKeyId }}',
'{{ requestId }}'
RETURNING
name,
done,
error,
metadata,
response
;