Skip to main content

catalogs

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

Overview

Namecatalogs
TypeResource
Idazure.dev_center.catalogs

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
ado_gittextfield from the properties object
catalogNametextfield from the properties object
connection_statetextfield from the properties object
devCenterNametextfield from the properties object
git_hubtextfield from the properties object
last_connection_timetextfield from the properties object
last_sync_statstextfield from the properties object
last_sync_timetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
sync_statetextfield from the properties object
sync_typetextfield from the properties object
system_datatextfield from the properties object
tagstextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTcatalogName, devCenterName, resourceGroupName, subscriptionIdGets a catalog
list_by_dev_centerSELECTdevCenterName, resourceGroupName, subscriptionIdLists catalogs for a devcenter.
create_or_updateINSERTcatalogName, devCenterName, resourceGroupName, subscriptionIdCreates or updates a catalog.
deleteDELETEcatalogName, devCenterName, resourceGroupName, subscriptionIdDeletes a catalog resource.
updateUPDATEcatalogName, devCenterName, resourceGroupName, subscriptionIdPartially updates a catalog.
connectEXECcatalogName, devCenterName, resourceGroupName, subscriptionIdConnects a catalog to enable syncing.
syncEXECcatalogName, devCenterName, resourceGroupName, subscriptionIdSyncs templates for a template source.

SELECT examples

Lists catalogs for a devcenter.

SELECT
id,
name,
ado_git,
catalogName,
connection_state,
devCenterName,
git_hub,
last_connection_time,
last_sync_stats,
last_sync_time,
provisioning_state,
resourceGroupName,
subscriptionId,
sync_state,
sync_type,
system_data,
tags,
type
FROM azure.dev_center.vw_catalogs
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.catalogs (
catalogName,
devCenterName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ catalogName }}',
'{{ devCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a catalogs resource.

/*+ update */
UPDATE azure.dev_center.catalogs
SET
properties = '{{ properties }}'
WHERE
catalogName = '{{ catalogName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified catalogs resource.

/*+ delete */
DELETE FROM azure.dev_center.catalogs
WHERE catalogName = '{{ catalogName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';