environment_types
Creates, updates, deletes, gets or lists an environment_types resource.
Overview
| Name | environment_types |
| Type | Resource |
| Id | azure.developer_devcenter.environment_types |
Fields
The following fields are returned by SELECT queries:
- list_environment_types
| Name | Datatype | Description |
|---|---|---|
name | string | Name of the environment type. Required. |
deploymentTargetId | string | Id of a subscription or management group that the environment type will be mapped to. The environment's resources will be deployed into this subscription or management group. Required. |
status | string | Indicates whether this environment type is enabled for use in this project. Required. Known values are: "Enabled" and "Disabled". (Enabled, Disabled) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_environment_types | select | project_name, endpoint | Lists all environment types configured for a project. |
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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
project_name | string | The DevCenter Project upon which to execute operations. Required. |
SELECT examples
- list_environment_types
Lists all environment types configured for a project.
SELECT
name,
deploymentTargetId,
status
FROM azure.developer_devcenter.environment_types
WHERE project_name = '{{ project_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;