project_catalogs
Creates, updates, deletes, gets or lists a project_catalogs resource.
Overview
| Name | project_catalogs |
| Type | Resource |
| Id | azure.devcenter.project_catalogs |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long |
name | string | The name of the resource. |
adoGit | object | Properties for an Azure DevOps catalog type. |
connectionState | string | The connection state of the catalog. Known values are: "Connected" and "Disconnected". |
gitHub | object | Properties for a GitHub catalog type. |
lastConnectionTime | string (date-time) | When the catalog was last connected. |
lastSyncStats | object | Stats of the latest synchronization. |
lastSyncTime | string (date-time) | When the catalog was last synced. |
provisioningState | string | The provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed". |
syncState | string | The synchronization state of the catalog. Known values are: "Succeeded", "InProgress", "Failed", and "Canceled". |
syncType | string | Indicates the type of sync that is configured for the catalog. Known values are: "Manual" and "Scheduled". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long |
name | string | The name of the resource. |
adoGit | object | Properties for an Azure DevOps catalog type. |
connectionState | string | The connection state of the catalog. Known values are: "Connected" and "Disconnected". |
gitHub | object | Properties for a GitHub catalog type. |
lastConnectionTime | string (date-time) | When the catalog was last connected. |
lastSyncStats | object | Stats of the latest synchronization. |
lastSyncTime | string (date-time) | When the catalog was last synced. |
provisioningState | string | The provisioning state of the resource. Known values are: "NotSpecified", "Accepted", "Running", "Creating", "Created", "Updating", "Updated", "Deleting", "Deleted", "Succeeded", "Failed", "Canceled", "MovingResources", "TransientFailure", "RolloutInProgress", and "StorageProvisioningFailed". |
syncState | string | The synchronization state of the catalog. Known values are: "Succeeded", "InProgress", "Failed", and "Canceled". |
syncType | string | Indicates the type of sync that is configured for the catalog. Known values are: "Manual" and "Scheduled". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Resource tags. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
catalog_name | string | The name of the Catalog. Required. |
project_name | string | The name of the project. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
$top | integer | The maximum number of resources to return from the operation. Example: '$top=10'. Default value is None. |
SELECT examples
- get
- list
Gets an associated project catalog.
SELECT
id,
name,
adoGit,
connectionState,
gitHub,
lastConnectionTime,
lastSyncStats,
lastSyncTime,
provisioningState,
syncState,
syncType,
systemData,
tags,
type
FROM azure.devcenter.project_catalogs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND catalog_name = '{{ catalog_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists the catalogs associated with a project.
SELECT
id,
name,
adoGit,
connectionState,
gitHub,
lastConnectionTime,
lastSyncStats,
lastSyncTime,
provisioningState,
syncState,
syncType,
systemData,
tags,
type
FROM azure.devcenter.project_catalogs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $top = '{{ $top }}'
;
INSERT examples
- create_or_update
- Manifest
Creates or updates a project catalog.
INSERT INTO azure.devcenter.project_catalogs (
properties,
resource_group_name,
project_name,
catalog_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ project_name }}',
'{{ catalog_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: project_catalogs
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the project_catalogs resource.
- name: project_name
value: "{{ project_name }}"
description: Required parameter for the project_catalogs resource.
- name: catalog_name
value: "{{ catalog_name }}"
description: Required parameter for the project_catalogs resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the project_catalogs resource.
- name: properties
value:
gitHub:
uri: "{{ uri }}"
branch: "{{ branch }}"
secretIdentifier: "{{ secretIdentifier }}"
path: "{{ path }}"
adoGit:
uri: "{{ uri }}"
branch: "{{ branch }}"
secretIdentifier: "{{ secretIdentifier }}"
path: "{{ path }}"
syncType: "{{ syncType }}"
tags: "{{ tags }}"
REPLACE examples
- create_or_update
Creates or updates a project catalog.
REPLACE azure.devcenter.project_catalogs
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND catalog_name = '{{ catalog_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes a project catalog resource.
DELETE FROM azure.devcenter.project_catalogs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND project_name = '{{ project_name }}' --required
AND catalog_name = '{{ catalog_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;
Lifecycle Methods
- patch
- get_sync_error_details
- sync
- connect
Partially updates a project catalog.
EXEC azure.devcenter.project_catalogs.patch
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@catalog_name='{{ catalog_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;
Gets project catalog synchronization error details.
EXEC azure.devcenter.project_catalogs.get_sync_error_details
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@catalog_name='{{ catalog_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Syncs templates for a template source.
EXEC azure.devcenter.project_catalogs.sync
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@catalog_name='{{ catalog_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;
Connects a project catalog to enable syncing.
EXEC azure.devcenter.project_catalogs.connect
@resource_group_name='{{ resource_group_name }}' --required,
@project_name='{{ project_name }}' --required,
@catalog_name='{{ catalog_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;