controllers
Creates, updates, deletes, gets or lists a controllers
resource.
Overview
Name | controllers |
Type | Resource |
Id | azure_extras.dev_spaces.controllers |
Fields
- vw_controllers
- controllers
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
data_plane_fqdn | text | field from the properties object |
host_suffix | text | field from the properties object |
location | text | Region where the Azure resource is located. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sku | text | Model representing SKU for Azure Dev Spaces Controller. |
subscriptionId | text | field from the properties object |
tags | text | Tags for the Azure resource. |
target_container_host_api_server_fqdn | text | field from the properties object |
target_container_host_credentials_base64 | text | field from the properties object |
target_container_host_resource_id | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | Region where the Azure resource is located. |
properties | object | |
sku | object | Model representing SKU for Azure Dev Spaces Controller. |
tags | object | Tags for the Azure resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, resourceGroupName, subscriptionId | Gets the properties for an Azure Dev Spaces Controller. |
list | SELECT | subscriptionId | Lists all the Azure Dev Spaces Controllers with their properties in the subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Lists all the Azure Dev Spaces Controllers with their properties in the specified resource group and subscription. |
create | INSERT | name, resourceGroupName, subscriptionId, data__location, data__properties, data__sku | Creates an Azure Dev Spaces Controller with the specified create parameters. |
delete | DELETE | name, resourceGroupName, subscriptionId | Deletes an existing Azure Dev Spaces Controller. |
update | UPDATE | name, resourceGroupName, subscriptionId | Updates 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.
- vw_controllers
- controllers
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 }}';
SELECT
location,
properties,
sku,
tags
FROM azure_extras.dev_spaces.controllers
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new controllers
resource.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: hostSuffix
value: string
- name: dataPlaneFqdn
value: string
- name: targetContainerHostApiServerFqdn
value: string
- name: targetContainerHostResourceId
value: string
- name: targetContainerHostCredentialsBase64
value: string
- name: sku
value:
- name: name
value: string
- name: tier
value: string
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 }}';