Skip to main content

deployments

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

Overview

Namedeployments
TypeResource
Idazure.api_center.deployments

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
apiNametextfield from the properties object
custom_propertiestextfield from the properties object
definition_idtextfield from the properties object
deploymentNametextfield from the properties object
environment_idtextfield from the properties object
resourceGroupNametextfield from the properties object
servertextfield from the properties object
serviceNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiName, deploymentName, resourceGroupName, serviceName, subscriptionId, workspaceNameReturns details of the API deployment.
listSELECTapiName, resourceGroupName, serviceName, subscriptionId, workspaceNameReturns a collection of API deployments.
create_or_updateINSERTapiName, deploymentName, resourceGroupName, serviceName, subscriptionId, workspaceNameCreates new or updates existing API deployment.
deleteDELETEapiName, deploymentName, resourceGroupName, serviceName, subscriptionId, workspaceNameDeletes API deployment.

SELECT examples

Returns a collection of API deployments.

SELECT
description,
apiName,
custom_properties,
definition_id,
deploymentName,
environment_id,
resourceGroupName,
server,
serviceName,
state,
subscriptionId,
title,
workspaceName
FROM azure.api_center.vw_deployments
WHERE apiName = '{{ apiName }}'
AND 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 deployments resource.

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

DELETE example

Deletes the specified deployments resource.

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