Catalogs - Get
Gets a catalog
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}?api-version=2024-02-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
catalog
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z0-9][a-zA-Z0-9-_.]{2,62}$ |
The name of the Catalog. |
dev
|
path | True |
string minLength: 3maxLength: 26 pattern: ^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$ |
The name of the devcenter. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Catalogs_Get
Sample request
GET https://management.azure.com/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog?api-version=2024-02-01
Sample response
{
"id": "/subscriptions/0ac520ee-14c0-480f-b6c9-0a90c58ffff/resourceGroups/rg1/providers/Microsoft.DevCenter/devcenters/Contoso/catalogs/CentralCatalog",
"name": "CentralCatalog",
"type": "Microsoft.DevCenter/devcenters/catalogs",
"properties": {
"gitHub": {
"uri": "https://github.com/Contoso/centralrepo-fake.git",
"branch": "main",
"secretIdentifier": "https://contosokv.vault.azure.net/secrets/CentralRepoPat",
"path": "/templates"
},
"lastSyncStats": {
"added": 1,
"updated": 1,
"unchanged": 1,
"removed": 1,
"validationErrors": 1,
"synchronizationErrors": 1
},
"lastConnectionTime": "2020-11-18T18:28:00.314Z",
"lastSyncTime": "2020-11-18T18:28:00.314Z",
"provisioningState": "Succeeded",
"connectionState": "Connected",
"syncState": "Succeeded",
"syncType": "Scheduled"
},
"systemData": {
"createdBy": "User1",
"createdByType": "User",
"createdAt": "2020-11-18T18:24:24.818Z",
"lastModifiedBy": "User1",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-11-18T18:24:24.818Z"
}
}
Definitions
Name | Description |
---|---|
Catalog |
Represents a catalog. |
Catalog |
The connection state of the catalog. |
Catalog |
Indicates catalog item types. |
Catalog |
The synchronization state of the catalog. |
Catalog |
Indicates the type of sync that is configured for the catalog. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Git |
Properties for a Git repository catalog. |
Provisioning |
Provisioning state of the resource. |
Sync |
Stats of the synchronization. |
system |
Metadata pertaining to creation and last modification of the resource. |
Catalog
Represents a catalog.
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.adoGit |
Properties for an Azure DevOps catalog type. |
|
properties.connectionState |
The connection state of the catalog. |
|
properties.gitHub |
Properties for a GitHub catalog type. |
|
properties.lastConnectionTime |
string (date-time) |
When the catalog was last connected. |
properties.lastSyncStats |
Stats of the latest synchronization. |
|
properties.lastSyncTime |
string (date-time) |
When the catalog was last synced. |
properties.provisioningState |
The provisioning state of the resource. |
|
properties.syncState |
The synchronization state of the catalog. |
|
properties.syncType |
Indicates the type of sync that is configured for the catalog. |
|
properties.tags |
object |
Resource tags. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
CatalogConnectionState
The connection state of the catalog.
Value | Description |
---|---|
Connected | |
Disconnected |
CatalogItemType
Indicates catalog item types.
Value | Description |
---|---|
EnvironmentDefinition |
CatalogSyncState
The synchronization state of the catalog.
Value | Description |
---|---|
Succeeded | |
InProgress | |
Failed | |
Canceled |
CatalogSyncType
Indicates the type of sync that is configured for the catalog.
Value | Description |
---|---|
Manual | |
Scheduled |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
GitCatalog
Properties for a Git repository catalog.
Name | Type | Description |
---|---|---|
branch |
string |
Git branch. |
path |
string |
The folder where the catalog items can be found inside the repository. |
secretIdentifier |
string |
A reference to the Key Vault secret containing a security token to authenticate to a Git repository. |
uri |
string |
Git URI. |
ProvisioningState
Provisioning state of the resource.
Value | Description |
---|---|
NotSpecified | |
Accepted | |
Running | |
Creating | |
Created | |
Updating | |
Updated | |
Deleting | |
Deleted | |
Succeeded | |
Failed | |
Canceled | |
MovingResources | |
TransientFailure | |
RolloutInProgress | |
StorageProvisioningFailed |
SyncStats
Stats of the synchronization.
Name | Type | Description |
---|---|---|
added |
integer (int32) minimum: 0 |
Count of catalog items added during synchronization. |
removed |
integer (int32) minimum: 0 |
Count of catalog items removed during synchronization. |
syncedCatalogItemTypes |
Indicates catalog item types that were synced. |
|
synchronizationErrors |
integer (int32) minimum: 0 |
Count of synchronization errors that occured during synchronization. |
unchanged |
integer (int32) minimum: 0 |
Count of catalog items that were unchanged during synchronization. |
updated |
integer (int32) minimum: 0 |
Count of catalog items updated during synchronization. |
validationErrors |
integer (int32) minimum: 0 |
Count of catalog items that had validation errors during synchronization. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |