Skip to main content

controllers

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

Overview

Namecontrollers
TypeResource
Idazure_extras.dev_spaces.controllers

Fields

NameDatatypeDescription
nametextfield from the properties object
data_plane_fqdntextfield from the properties object
host_suffixtextfield from the properties object
locationtextRegion where the Azure resource is located.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextModel representing SKU for Azure Dev Spaces Controller.
subscriptionIdtextfield from the properties object
tagstextTags for the Azure resource.
target_container_host_api_server_fqdntextfield from the properties object
target_container_host_credentials_base64textfield from the properties object
target_container_host_resource_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdGets the properties for an Azure Dev Spaces Controller.
listSELECTsubscriptionIdLists all the Azure Dev Spaces Controllers with their properties in the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription.
createINSERTname, resourceGroupName, subscriptionId, data__location, data__properties, data__skuCreates an Azure Dev Spaces Controller with the specified create parameters.
deleteDELETEname, resourceGroupName, subscriptionIdDeletes an existing Azure Dev Spaces Controller.
updateUPDATEname, resourceGroupName, subscriptionIdUpdates the properties of an existing Azure Dev Spaces Controller with the specified update parameters.

SELECT examples

Lists all the Azure Dev Spaces Controllers with their properties in the subscription.

SELECT
name,
data_plane_fqdn,
host_suffix,
location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags,
target_container_host_api_server_fqdn,
target_container_host_credentials_base64,
target_container_host_resource_id
FROM azure_extras.dev_spaces.vw_controllers
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.dev_spaces.controllers (
name,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
data__sku,
tags,
location,
properties,
sku
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a controllers resource.

/*+ update */
UPDATE azure_extras.dev_spaces.controllers
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified controllers resource.

/*+ delete */
DELETE FROM azure_extras.dev_spaces.controllers
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';