environment_types
Creates, updates, deletes, gets or lists a environment_types
resource.
Overview
Name | environment_types |
Type | Resource |
Id | azure.dev_center.environment_types |
Fields
- vw_environment_types
- environment_types
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
devCenterName | text | field from the properties object |
display_name | text | field from the properties object |
environmentTypeName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of an environment type. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | devCenterName, environmentTypeName, resourceGroupName, subscriptionId | Gets an environment type. |
list_by_dev_center | SELECT | devCenterName, resourceGroupName, subscriptionId | Lists environment types for the devcenter. |
create_or_update | INSERT | devCenterName, environmentTypeName, resourceGroupName, subscriptionId | Creates or updates an environment type. |
delete | DELETE | devCenterName, environmentTypeName, resourceGroupName, subscriptionId | Deletes an environment type. |
update | UPDATE | devCenterName, environmentTypeName, resourceGroupName, subscriptionId | Partially updates an environment type. |
SELECT
examples
Lists environment types for the devcenter.
- vw_environment_types
- environment_types
SELECT
id,
name,
devCenterName,
display_name,
environmentTypeName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.dev_center.vw_environment_types
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
tags,
type
FROM azure.dev_center.environment_types
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new environment_types
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.dev_center.environment_types (
devCenterName,
environmentTypeName,
resourceGroupName,
subscriptionId,
properties,
tags
)
SELECT
'{{ devCenterName }}',
'{{ environmentTypeName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: displayName
value: string
- name: provisioningState
value: []
- name: tags
value: []
UPDATE
example
Updates a environment_types
resource.
/*+ update */
UPDATE azure.dev_center.environment_types
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
devCenterName = '{{ devCenterName }}'
AND environmentTypeName = '{{ environmentTypeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified environment_types
resource.
/*+ delete */
DELETE FROM azure.dev_center.environment_types
WHERE devCenterName = '{{ devCenterName }}'
AND environmentTypeName = '{{ environmentTypeName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';