Skip to main content

java_components

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

Overview

Namejava_components
TypeResource
Idazure.container_apps.java_components

Fields

NameDatatypeDescription
nametextfield from the properties object
component_typetextfield from the properties object
configurationstextfield from the properties object
environmentNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
service_bindstextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, name, resourceGroupName, subscriptionId
listSELECTenvironmentName, resourceGroupName, subscriptionId
create_or_updateINSERTenvironmentName, name, resourceGroupName, subscriptionIdCreates or updates a Java Component in a Managed Environment.
deleteDELETEenvironmentName, name, resourceGroupName, subscriptionIdDelete a Java Component.
updateUPDATEenvironmentName, name, resourceGroupName, subscriptionIdPatches a Java Component using JSON Merge Patch

SELECT examples

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 }}';

INSERT example

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

/*+ create */
INSERT INTO azure.container_apps.java_components (
environmentName,
name,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ environmentName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

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 }}';