Skip to main content

infrastructure_resources

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

Overview

Nameinfrastructure_resources
TypeResource
Idazure.integration_environment.infrastructure_resources

Fields

NameDatatypeDescription
infrastructureResourceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_idtextfield from the properties object
resource_typetextfield from the properties object
spaceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinfrastructureResourceName, resourceGroupName, spaceName, subscriptionIdGet a InfrastructureResource
list_by_spaceSELECTresourceGroupName, spaceName, subscriptionIdList InfrastructureResource resources by Space
create_or_updateINSERTinfrastructureResourceName, resourceGroupName, spaceName, subscriptionIdCreate a InfrastructureResource
deleteDELETEinfrastructureResourceName, resourceGroupName, spaceName, subscriptionIdDelete a InfrastructureResource
patchUPDATEinfrastructureResourceName, resourceGroupName, spaceName, subscriptionIdUpdate a InfrastructureResource

SELECT examples

List InfrastructureResource resources by Space

SELECT
infrastructureResourceName,
provisioning_state,
resourceGroupName,
resource_id,
resource_type,
spaceName,
subscriptionId
FROM azure.integration_environment.vw_infrastructure_resources
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND spaceName = '{{ spaceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.integration_environment.infrastructure_resources (
infrastructureResourceName,
resourceGroupName,
spaceName,
subscriptionId,
properties
)
SELECT
'{{ infrastructureResourceName }}',
'{{ resourceGroupName }}',
'{{ spaceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a infrastructure_resources resource.

/*+ update */
UPDATE azure.integration_environment.infrastructure_resources
SET
properties = '{{ properties }}'
WHERE
infrastructureResourceName = '{{ infrastructureResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND spaceName = '{{ spaceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified infrastructure_resources resource.

/*+ delete */
DELETE FROM azure.integration_environment.infrastructure_resources
WHERE infrastructureResourceName = '{{ infrastructureResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND spaceName = '{{ spaceName }}'
AND subscriptionId = '{{ subscriptionId }}';