Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idazure.api_center.environments

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
custom_propertiestextfield from the properties object
environmentNametextfield from the properties object
kindtextfield from the properties object
onboardingtextfield from the properties object
resourceGroupNametextfield from the properties object
servertextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTenvironmentName, resourceGroupName, serviceName, subscriptionId, workspaceNameReturns details of the environment.
listSELECTresourceGroupName, serviceName, subscriptionId, workspaceNameReturns a collection of environments.
create_or_updateINSERTenvironmentName, resourceGroupName, serviceName, subscriptionId, workspaceNameCreates new or updates existing environment.
deleteDELETEenvironmentName, resourceGroupName, serviceName, subscriptionId, workspaceNameDeletes the environment.

SELECT examples

Returns a collection of environments.

SELECT
description,
custom_properties,
environmentName,
kind,
onboarding,
resourceGroupName,
server,
serviceName,
subscriptionId,
title,
workspaceName
FROM azure.api_center.vw_environments
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_center.environments (
environmentName,
resourceGroupName,
serviceName,
subscriptionId,
workspaceName,
properties
)
SELECT
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified environments resource.

/*+ delete */
DELETE FROM azure.api_center.environments
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';