Skip to main content

private_clouds

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

Overview

Nameprivate_clouds
TypeResource
Idgoogle.vmwareengine.private_clouds

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. Identifier. The resource name of this private cloud. 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
createTimestring (google-datetime)Output only. Creation time of this resource.
deleteTimestring (google-datetime)Output only. Time when the resource was scheduled for deletion.
descriptionstringUser-provided description for this private cloud.
expireTimestring (google-datetime)Output only. Time when the resource will be irreversibly deleted.
hcxobjectOutput only. HCX appliance. (id: Hcx)
managementClusterobjectRequired. Input only. The management cluster for this private cloud. This field is required during creation of the private cloud to provide details for the default cluster. The following fields can't be changed after private cloud creation: ManagementCluster.clusterId, ManagementCluster.nodeTypeId. (id: ManagementCluster)
networkConfigobjectRequired. Network configuration of the private cloud. (id: NetworkConfig)
nsxobjectOutput only. NSX appliance. (id: Nsx)
statestringOutput only. State of the resource. New values may be added to this enum when appropriate.
typestringOptional. Type of the private cloud. Defaults to STANDARD.
uidstringOutput only. System-generated unique identifier for the resource.
updateTimestring (google-datetime)Output only. Last update time of this resource.
vcenterobjectOutput only. Vcenter appliance. (id: Vcenter)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, privateCloudsIdRetrieves a PrivateCloud resource by its resource name.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists PrivateCloud resources in a given project and location.
createinsertprojectsId, locationsIdprivateCloudId, requestId, validateOnlyCreates a new PrivateCloud resource in a given project and location. Private clouds of type STANDARD and TIME_LIMITED are zonal resources, STRETCHED private clouds are regional. Creating a private cloud also creates a management cluster for that private cloud.
patchupdateprojectsId, locationsId, privateCloudsIdupdateMask, requestIdModifies a PrivateCloud resource. Only the following fields can be updated: description. 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.
deletedeleteprojectsId, locationsId, privateCloudsIdrequestId, force, delayHoursSchedules a PrivateCloud resource for deletion. A PrivateCloud resource scheduled for deletion has PrivateCloud.state set to DELETED and expireTime set to the time when deletion is final and can no longer be reversed. The delete operation is marked as done as soon as the PrivateCloud is successfully scheduled for deletion (this also applies when delayHours is set to zero), and the operation is not kept in pending state until PrivateCloud is purged. PrivateCloud can be restored using UndeletePrivateCloud method before the expireTime elapses. When expireTime is reached, deletion is final and all private cloud resources are irreversibly removed and billing stops. During the final removal process, PrivateCloud.state is set to PURGING. PrivateCloud can be polled using standard GET method for the whole period of deletion and purging. It will not be returned only when it is completely purged.
private_cloud_deletion_nowexecprojectsId, locationsId, privateCloudsIdAccelerates the deletion of a private cloud that is currently in soft deletion A PrivateCloud resource in soft deletion has PrivateCloud.state set to SOFT_DELETED and PrivateCloud.expireTime set to the time when deletion can no longer be reversed.
undeleteexecprojectsId, locationsId, privateCloudsIdRestores a private cloud that was previously scheduled for deletion by DeletePrivateCloud. A PrivateCloud resource scheduled for deletion has PrivateCloud.state set to DELETED and PrivateCloud.expireTime set to the time when deletion can no longer be reversed.
show_nsx_credentialsexecprojectsId, locationsId, privateCloudsIdGets details of credentials for NSX appliance.
show_vcenter_credentialsexecprojectsId, locationsId, privateCloudsIdusernameGets details of credentials for Vcenter appliance.
reset_nsx_credentialsexecprojectsId, locationsId, privateCloudsIdResets credentials of the NSX appliance.
reset_vcenter_credentialsexecprojectsId, locationsId, privateCloudsIdResets credentials of the Vcenter appliance.

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
locationsIdstring
privateCloudsIdstring
projectsIdstring
delayHoursinteger (int32)
filterstring
forceboolean
orderBystring
pageSizeinteger (int32)
pageTokenstring
privateCloudIdstring
requestIdstring
updateMaskstring (google-fieldmask)
usernamestring
validateOnlyboolean

SELECT examples

Retrieves a PrivateCloud resource by its resource name.

SELECT
name,
createTime,
deleteTime,
description,
expireTime,
hcx,
managementCluster,
networkConfig,
nsx,
state,
type,
uid,
updateTime,
vcenter
FROM google.vmwareengine.private_clouds
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND privateCloudsId = '{{ privateCloudsId }}' -- required;

INSERT examples

Creates a new PrivateCloud resource in a given project and location. Private clouds of type STANDARD and TIME_LIMITED are zonal resources, STRETCHED private clouds are regional. Creating a private cloud also creates a management cluster for that private cloud.

INSERT INTO google.vmwareengine.private_clouds (
data__networkConfig,
data__managementCluster,
data__description,
data__type,
projectsId,
locationsId,
privateCloudId,
requestId,
validateOnly
)
SELECT
'{{ networkConfig }}',
'{{ managementCluster }}',
'{{ description }}',
'{{ type }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ privateCloudId }}',
'{{ requestId }}',
'{{ validateOnly }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Modifies a PrivateCloud resource. Only the following fields can be updated: description. 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.

UPDATE google.vmwareengine.private_clouds
SET
data__networkConfig = '{{ networkConfig }}',
data__managementCluster = '{{ managementCluster }}',
data__description = '{{ description }}',
data__type = '{{ type }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND updateMask = '{{ updateMask}}'
AND requestId = '{{ requestId}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Schedules a PrivateCloud resource for deletion. A PrivateCloud resource scheduled for deletion has PrivateCloud.state set to DELETED and expireTime set to the time when deletion is final and can no longer be reversed. The delete operation is marked as done as soon as the PrivateCloud is successfully scheduled for deletion (this also applies when delayHours is set to zero), and the operation is not kept in pending state until PrivateCloud is purged. PrivateCloud can be restored using UndeletePrivateCloud method before the expireTime elapses. When expireTime is reached, deletion is final and all private cloud resources are irreversibly removed and billing stops. During the final removal process, PrivateCloud.state is set to PURGING. PrivateCloud can be polled using standard GET method for the whole period of deletion and purging. It will not be returned only when it is completely purged.

DELETE FROM google.vmwareengine.private_clouds
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND privateCloudsId = '{{ privateCloudsId }}' --required
AND requestId = '{{ requestId }}'
AND force = '{{ force }}'
AND delayHours = '{{ delayHours }}';

Lifecycle Methods

Accelerates the deletion of a private cloud that is currently in soft deletion A PrivateCloud resource in soft deletion has PrivateCloud.state set to SOFT_DELETED and PrivateCloud.expireTime set to the time when deletion can no longer be reversed.

EXEC google.vmwareengine.private_clouds.private_cloud_deletion_now 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@privateCloudsId='{{ privateCloudsId }}' --required
@@json=
'{
"requestId": "{{ requestId }}",
"etag": "{{ etag }}"
}';