java_components
Creates, updates, deletes, gets or lists a java_components
resource.
Overview
Name | java_components |
Type | Resource |
Id | azure.container_apps.java_components |
Fields
- vw_java_components
- java_components
Name | Datatype | Description |
---|---|---|
name | text | field from the properties object |
component_type | text | field from the properties object |
configurations | text | field from the properties object |
environmentName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
service_binds | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Java Component common properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | environmentName, name, resourceGroupName, subscriptionId | |
list | SELECT | environmentName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | environmentName, name, resourceGroupName, subscriptionId | Creates or updates a Java Component in a Managed Environment. |
delete | DELETE | environmentName, name, resourceGroupName, subscriptionId | Delete a Java Component. |
update | UPDATE | environmentName, name, resourceGroupName, subscriptionId | Patches a Java Component using JSON Merge Patch |
SELECT
examples
- vw_java_components
- java_components
SELECT
name,
component_type,
configurations,
environmentName,
provisioning_state,
resourceGroupName,
service_binds,
subscriptionId
FROM azure.container_apps.vw_java_components
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.container_apps.java_components
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new java_components
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.java_components (
environmentName,
name,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: componentType
value: string
- name: provisioningState
value: string
- name: configurations
value:
- - name: propertyName
value: string
- name: value
value: string
- name: serviceBinds
value:
- - name: name
value: string
- name: serviceId
value: string
UPDATE
example
Updates a java_components
resource.
/*+ update */
UPDATE azure.container_apps.java_components
SET
properties = '{{ properties }}'
WHERE
environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified java_components
resource.
/*+ delete */
DELETE FROM azure.container_apps.java_components
WHERE environmentName = '{{ environmentName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';