Skip to main content

provisioning_configs

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

Overview

Nameprovisioning_configs
TypeResource
Idgoogle.baremetalsolution.provisioning_configs

Fields

NameDatatypeDescription
namestringOutput only. The system-generated name of the provisioning config. This follows the UUID format.
cloudConsoleUristringOutput only. URI to Cloud Console UI view of this provisioning config.
customIdstringOptional. The user-defined identifier of the provisioning config.
emailstringEmail provided to send a confirmation with provisioning config to. Deprecated in favour of email field in request messages.
handoverServiceAccountstringA service account to enable customers to access instance credentials upon handover.
instancesarrayInstances to be created.
locationstringOptional. Location name of this ProvisioningConfig. It is optional only for Intake UI transition period.
networksarrayNetworks to be created.
podstringOptional. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes, nfsshares) allocated in the same pod only.
statestringOutput only. State of ProvisioningConfig.
statusMessagestringOptional status messages associated with the FAILED state.
ticketIdstringA generated ticket id to track provisioning request.
updateTimestringOutput only. Last update timestamp.
volumesarrayVolumes to be created.
vpcScEnabledbooleanIf true, VPC SC is enabled for the cluster.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, provisioningConfigsIdGet ProvisioningConfig by name.
createINSERTlocationsId, projectsIdCreate new ProvisioningConfig.
patchUPDATElocationsId, projectsId, provisioningConfigsIdUpdate existing ProvisioningConfig.
submitEXEClocationsId, projectsIdSubmit a provisiong configuration for a given project.

SELECT examples

Get ProvisioningConfig by name.

SELECT
name,
cloudConsoleUri,
customId,
email,
handoverServiceAccount,
instances,
location,
networks,
pod,
state,
statusMessage,
ticketId,
updateTime,
volumes,
vpcScEnabled
FROM google.baremetalsolution.provisioning_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND provisioningConfigsId = '{{ provisioningConfigsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new provisioning_configs resource.

/*+ create */
INSERT INTO google.baremetalsolution.provisioning_configs (
locationsId,
projectsId,
instances,
networks,
volumes,
ticketId,
handoverServiceAccount,
email,
location,
vpcScEnabled,
statusMessage,
customId,
pod
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ instances }}',
'{{ networks }}',
'{{ volumes }}',
'{{ ticketId }}',
'{{ handoverServiceAccount }}',
'{{ email }}',
'{{ location }}',
{{ vpcScEnabled }},
'{{ statusMessage }}',
'{{ customId }}',
'{{ pod }}'
;

UPDATE example

Updates a provisioning_configs resource.

/*+ update */
UPDATE google.baremetalsolution.provisioning_configs
SET
instances = '{{ instances }}',
networks = '{{ networks }}',
volumes = '{{ volumes }}',
ticketId = '{{ ticketId }}',
handoverServiceAccount = '{{ handoverServiceAccount }}',
email = '{{ email }}',
location = '{{ location }}',
vpcScEnabled = true|false,
statusMessage = '{{ statusMessage }}',
customId = '{{ customId }}',
pod = '{{ pod }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND provisioningConfigsId = '{{ provisioningConfigsId }}';